From 7b28eaeac5f2d8d591b1b0c94e10b64644017869 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Mon, 1 Aug 2005 12:48:30 +0000 Subject: fix --- include/fuse.h | 11 +++++++++++ include/fuse_common.h | 5 +++-- include/fuse_lowlevel.h | 1 + 3 files changed, 15 insertions(+), 2 deletions(-) (limited to 'include') 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); -- cgit v1.2.3