aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-11-07 11:59:00 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-11-07 11:59:00 +0000
commit52cb09d16ed7e233c35c0c33e72a952211a056b3 (patch)
treee13243dd1ac8f5e3eaaf10e11c6d2637b15e9046 /include/fuse.h
parentf7eec0361d3b2465c8cf3449082ee396b016e29b (diff)
downloadlibfuse-52cb09d16ed7e233c35c0c33e72a952211a056b3.tar.gz
fix up statfs interface
Diffstat (limited to 'include/fuse.h')
-rw-r--r--include/fuse.h18
1 files changed, 12 insertions, 6 deletions
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 <sys/types.h>
#include <sys/stat.h>
-#include <sys/statfs.h>
+#include <sys/statvfs.h>
#include <utime.h>
#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