aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-10-26 12:53:25 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-10-26 12:53:25 +0000
commitb0b13d1e5499e20382ad74e202160d49e1792ee8 (patch)
tree77c9dbbceda8149929fed4e66411b49a405808cf /include/fuse.h
parentc4c12ae295ca6f3fb02e12d3bad8f92fee4dfe3f (diff)
downloadlibfuse-b0b13d1e5499e20382ad74e202160d49e1792ee8.tar.gz
add access operation
Diffstat (limited to 'include/fuse.h')
-rw-r--r--include/fuse.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/fuse.h b/include/fuse.h
index 9739f26..4a099bc 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -63,8 +63,9 @@ typedef int (*fuse_dirfil_t) (fuse_dirh_t h, const char *name, int type,
*
* All methods are optional, but some are essential for a useful
* filesystem (e.g. getattr). Open, flush, release, fsync, opendir,
- * releasedir, fsyncdir, init and destroy are special purpose methods,
- * without which a full featured filesystem can still be implemented.
+ * releasedir, fsyncdir, access, init and destroy are special purpose
+ * methods, without which a full featured filesystem can still be
+ * implemented.
*/
struct fuse_operations {
/** Get file attributes.
@@ -296,6 +297,17 @@ struct fuse_operations {
* Introduced in version 2.3
*/
void (*destroy) (void *);
+
+ /**
+ * Check file access permissions
+ *
+ * Need not be implemented. This will be called for the access()
+ * system call. If the 'default_permissions' mount option is
+ * given, this method is not called.
+ *
+ * Introduced in version 2.5
+ */
+ int (*access) (const char *, int);
};
/** Extra context that may be needed by some filesystems