+2003-12-15 Miklos Szeredi <mszeredi@inf.bme.hu>
+
+ * Added major+minor version to library API, and minor version to
+ kernel API
+
2003-12-13 David McNab <david@rebirthing.co.nz>
* Implemented fsync support in examples/example.py
static int xmp_release(const char *path, int flags)
{
- /* just a stub here */
- return 0;
+ /* Just a stub. This method is optional and can safely be left
+ unimplemented */
+
+ (void) path;
+ (void) flags;
+ return 0;
}
static int xmp_fsync(const char *path, int isdatasync)
{
- /* just stub this */
- return 0;
+ /* Just a stub. This method is optional and can safely be left
+ unimplemented */
+
+ (void) path;
+ (void) isdatasync;
+ return 0;
}
static struct fuse_operations xmp_oper = {
write: xmp_write,
statfs: xmp_statfs,
release: xmp_release,
- fsync: xmp_fsync
+ fsync: xmp_fsync
};
/* This file defines the library interface of FUSE */
+/** Major version of FUSE library interface */
+#define FUSE_MAJOR_VERSION 1
+
+/** Minor version of FUSE library interface */
+#define FUSE_MINOR_VERSION 1
+
/* Now and forever: this interface uses 64 bit off_t */
#define _FILE_OFFSET_BITS 64
/** Version number of this interface */
#define FUSE_KERNEL_VERSION 2
+/** Minor version number of this interface */
+#define FUSE_KERNEL_MINOR_VERSION 1
+
/** The inode number of the root indode */
#define FUSE_ROOT_INO 1
res = f->op.statfs((struct fuse_statfs *) &arg.st);
}
- if (0)
- {
- printf("block_size=%ld, blocks=%ld, blocks_free=%ld, files=%ld, files_free=%ld, namelen=%ld\n",
- arg.st.block_size,
- arg.st.blocks,
- arg.st.blocks_free,
- arg.st.files,
- arg.st.files_free,
- arg.st.namelen);
- }
-
send_reply(f, in, res, &arg, sizeof(arg));
}