diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-10-28 13:09:50 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-10-28 13:09:50 +0000 |
commit | f7eec0361d3b2465c8cf3449082ee396b016e29b (patch) | |
tree | 3e2477ce5a721c613a6a3474cadda7d407dc3fb4 /include/fuse.h | |
parent | 11509ce3fc6a36b6e3c094bf8aa11820f17d0ede (diff) | |
download | libfuse-f7eec0361d3b2465c8cf3449082ee396b016e29b.tar.gz |
fix
Diffstat (limited to 'include/fuse.h')
-rw-r--r-- | include/fuse.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/include/fuse.h b/include/fuse.h index 6d7e54b..329fd5e 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -63,8 +63,8 @@ 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, access, create, ftruncate, init and destroy - * are special purpose methods, without which a full featured + * releasedir, fsyncdir, access, create, ftruncate, fgetattr, init and + * destroy are special purpose methods, without which a full featured * filesystem can still be implemented. */ struct fuse_operations { @@ -338,6 +338,20 @@ struct fuse_operations { * Introduced in version 2.5 */ int (*ftruncate) (const char *, off_t, struct fuse_file_info *); + + /** + * Get attributes from an open file + * + * This method is called instead of the getattr() method if the + * file information is available. + * + * Currently this is only called after the create() method if that + * is implemented (see above). Later it may be called for + * invocations of fstat() too. + * + * Introduced in version 2.5 + */ + int (*fgetattr) (const char *, struct stat *, struct fuse_file_info *); }; /** Extra context that may be needed by some filesystems |