From 52cb09d16ed7e233c35c0c33e72a952211a056b3 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Mon, 7 Nov 2005 11:59:00 +0000 Subject: fix up statfs interface --- include/fuse.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'include/fuse.h') diff --git a/include/fuse.h b/include/fuse.h index 329fd5e..831dbff 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -20,7 +20,7 @@ #include #include -#include +#include #include #ifdef __cplusplus @@ -162,11 +162,8 @@ struct fuse_operations { int (*write) (const char *, const char *, size_t, off_t, struct fuse_file_info *); - /** Get file system statistics - * - * The 'f_type' and 'f_fsid' fields are ignored - */ - int (*statfs) (const char *, struct statfs *); + /** Old statfs interface, deprecated */ + int (*statfs_old) (const char *, void *stbuf); /** Possibly flush cached data * @@ -352,6 +349,15 @@ struct fuse_operations { * Introduced in version 2.5 */ int (*fgetattr) (const char *, struct stat *, struct fuse_file_info *); + + /** Get file system statistics + * + * The 'f_frsize', 'f_favail', 'f_fsid' and 'f_flag' fields are ignored + * + * Replaced 'struct statfs' parameter with 'struct statvfs' in + * version 2.5 + */ + int (*statfs) (const char *, struct statvfs *stbuf); }; /** Extra context that may be needed by some filesystems -- cgit v1.2.3