Skip to content

Commit

Permalink
Merge pull request #75 from ewah/master
Browse files Browse the repository at this point in the history
reset message w/ path
  • Loading branch information
ewah committed Nov 19, 2014
2 parents 92a9f7f + c402e8c commit aca1250
Show file tree
Hide file tree
Showing 3 changed files with 182 additions and 164 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*~
*.swp
*.pyc
*.pyo
build/
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,22 +302,22 @@ Similarly on Linux you can use the 'getfattr' and 'setfattr' commands:

$ getfattr -d -m yas3fs file
# file: file
yas3fs.URL="http://bucket.s3.amazonaws.com/key"
yas3fs.bucket="S3 bucket"
yas3fs.expiration="2592000 (default)"
yas3fs.key="S3 key"
yas3fs.signedURL="https://bucket.s3.amazonaws.com/..." (for default expiration)
user.yas3fs.URL="http://bucket.s3.amazonaws.com/key"
user.yas3fs.bucket="S3 bucket"
user.yas3fs.expiration="2592000 (default)"
user.yas3fs.key="S3 key"
user.yas3fs.signedURL="https://bucket.s3.amazonaws.com/..." (for default expiration)

$ setfattr -n yas3fs.expiration -v 3600
$ setfattr -n user.yas3fs.expiration -v 3600
$ getfattr -d -m yas3fs file
# file: file
yas3fs.URL="http://bucket.s3.amazonaws.com/key"
yas3fs.bucket="S3 bucket"
yas3fs.expiration="3600"
yas3fs.key="S3 key"
yas3fs.signedURL="https://bucket.s3.amazonaws.com/..." (for 1h expiration)
user.yas3fs.URL="http://bucket.s3.amazonaws.com/key"
user.yas3fs.bucket="S3 bucket"
user.yas3fs.expiration="3600"
user.yas3fs.key="S3 key"
user.yas3fs.signedURL="https://bucket.s3.amazonaws.com/..." (for 1h expiration)

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

### Notification Syntax & Use

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

0 comments on commit aca1250

Please sign in to comment.