Skip to content

Commit aca1250

Browse files
committed
Merge pull request #75 from ewah/master
reset message w/ path
2 parents 92a9f7f + c402e8c commit aca1250

File tree

3 files changed

+182
-164
lines changed

3 files changed

+182
-164
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*~
2+
*.swp
23
*.pyc
34
*.pyo
45
build/

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -302,22 +302,22 @@ Similarly on Linux you can use the 'getfattr' and 'setfattr' commands:
302302

303303
$ getfattr -d -m yas3fs file
304304
# file: file
305-
yas3fs.URL="http://bucket.s3.amazonaws.com/key"
306-
yas3fs.bucket="S3 bucket"
307-
yas3fs.expiration="2592000 (default)"
308-
yas3fs.key="S3 key"
309-
yas3fs.signedURL="https://bucket.s3.amazonaws.com/..." (for default expiration)
305+
user.yas3fs.URL="http://bucket.s3.amazonaws.com/key"
306+
user.yas3fs.bucket="S3 bucket"
307+
user.yas3fs.expiration="2592000 (default)"
308+
user.yas3fs.key="S3 key"
309+
user.yas3fs.signedURL="https://bucket.s3.amazonaws.com/..." (for default expiration)
310310

311-
$ setfattr -n yas3fs.expiration -v 3600
311+
$ setfattr -n user.yas3fs.expiration -v 3600
312312
$ getfattr -d -m yas3fs file
313313
# file: file
314-
yas3fs.URL="http://bucket.s3.amazonaws.com/key"
315-
yas3fs.bucket="S3 bucket"
316-
yas3fs.expiration="3600"
317-
yas3fs.key="S3 key"
318-
yas3fs.signedURL="https://bucket.s3.amazonaws.com/..." (for 1h expiration)
314+
user.yas3fs.URL="http://bucket.s3.amazonaws.com/key"
315+
user.yas3fs.bucket="S3 bucket"
316+
user.yas3fs.expiration="3600"
317+
user.yas3fs.key="S3 key"
318+
user.yas3fs.signedURL="https://bucket.s3.amazonaws.com/..." (for 1h expiration)
319319

320-
$ setfattr -x yas3fs.expiration latest.zip # File specific expiration removed, the default is used again
320+
$ setfattr -x user.yas3fs.expiration latest.zip # File specific expiration removed, the default is used again
321321

322322
### Notification Syntax & Use
323323

@@ -341,7 +341,7 @@ The following `action`(s) are currently implemented:
341341
* `rename` (rename file or directory): `[ "node_id", "rename", "old_path", "new_path" ]`
342342
* `upload` (new or updated file): `[ "node_id", "upload", "path", "new_md5" ]` (`path` and `new_md5` are optional)
343343
* `md` (updated metadata, e.g. attr/xattr): `[ "node_id", "md", "path", "metadata_name" ]`
344-
* `reset` (reset cache): `[ "node_id", "reset" ]`
344+
* `reset` (reset cache): `[ "node_id", "reset", "path" ]` (`path` is optional)
345345
* `cache` (change cache config): `[ "node_id", "cache" , "entries" or "mem" or "disk", new_value ]`
346346
* `buffer` (change buffer config): `[ "node_id", "buffer", "size" or "prefetch", new_value ]`
347347
* `prefetch` (change prefetch config): `[ "node_id", "prefetch", "on" or "off" ]`

0 commit comments

Comments
 (0)