From 18e75e4cb186b5d247caea5c9aa21b69e4914c50 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 19 Feb 2004 14:23:27 +0000 Subject: statfs fixes --- include/fuse.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'include/fuse.h') diff --git a/include/fuse.h b/include/fuse.h index c2f0be4..7fdcc6e 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -12,7 +12,7 @@ /* This file defines the library interface of FUSE */ /** Major version of FUSE library interface */ -#define FUSE_MAJOR_VERSION 1 +#define FUSE_MAJOR_VERSION 2 /** Minor version of FUSE library interface */ #define FUSE_MINOR_VERSION 1 @@ -22,6 +22,7 @@ #include #include +#include #include /* ----------------------------------------------------------- * @@ -31,16 +32,6 @@ /** Handle for a FUSE filesystem */ struct fuse; -/* Statfs structure used by FUSE */ -struct fuse_statfs { - long block_size; - long blocks; - long blocks_free; - long files; - long files_free; - long namelen; -}; - /** Handle for a getdir() operation */ typedef struct fuse_dirhandle *fuse_dirh_t; @@ -117,7 +108,7 @@ struct fuse_operations { int (*open) (const char *, int); int (*read) (const char *, char *, size_t, off_t); int (*write) (const char *, const char *, size_t, off_t); - int (*statfs) (struct fuse_statfs *); + int (*statfs) (const char *, struct statfs *); int (*release) (const char *, int); int (*fsync) (const char *, int); }; -- cgit v1.2.3