diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-08-01 12:48:30 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-08-01 12:48:30 +0000 |
commit | 7b28eaeac5f2d8d591b1b0c94e10b64644017869 (patch) | |
tree | b59344f5b9261da640b0e21ac398093755fdfbae /include | |
parent | e77cc07e755c1e360455e707653f705d0bd25622 (diff) | |
download | libfuse-7b28eaeac5f2d8d591b1b0c94e10b64644017869.tar.gz |
fix
Diffstat (limited to 'include')
-rw-r--r-- | include/fuse.h | 11 | ||||
-rw-r--r-- | include/fuse_common.h | 5 | ||||
-rw-r--r-- | include/fuse_lowlevel.h | 1 |
3 files changed, 15 insertions, 2 deletions
diff --git a/include/fuse.h b/include/fuse.h index e285c07..b7b7ef3 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -306,6 +306,17 @@ struct fuse_operations { * Introduced in version 2.3 */ void (*destroy) (void *); + + /** + * Check file access permissions + * + * Need not be implemented. Will only be called for the access() + * system call, and only if 'default_permissions' mount option is + * not given. + * + * Introduced in version 2.4 + */ + int (*access) (const char *, int); }; /** Extra context that may be needed by some filesystems diff --git a/include/fuse_common.h b/include/fuse_common.h index 2110946..bb120d2 100644 --- a/include/fuse_common.h +++ b/include/fuse_common.h @@ -26,11 +26,12 @@ struct fuse_file_info { writepage */ int writepage; - /** Can be filled in by open, to use direct I/O on this file */ + /** Can be filled in by open, to use direct I/O on this file. + Introduced in version 2.4 */ unsigned int direct_io : 1; /** Can be filled in by open, to indicate, that cached file data - need not be invalidated */ + need not be invalidated. Introduced in version 2.4 */ unsigned int keep_cache : 1; }; diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h index ddead68..16257a9 100644 --- a/include/fuse_lowlevel.h +++ b/include/fuse_lowlevel.h @@ -78,6 +78,7 @@ struct fuse_ll_operations { void (*getattr)(fuse_req_t req, fuse_ino_t ino); void (*setattr)(fuse_req_t req, fuse_ino_t ino, struct stat *attr, int to_set); + void (*access) (fuse_req_t req, fuse_ino_t ino, int mask); void (*readlink)(fuse_req_t req, fuse_ino_t ino); void (*mknod) (fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode, dev_t rdev); |