aboutsummaryrefslogtreecommitdiffstats
path: root/include/fuse_common.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-11-11 21:32:42 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-11-11 21:32:42 +0000
commit3a77047661e345939e36f761db7a7a04ae632b76 (patch)
tree96f7fb8e682473dbe9739357040d94f7d9a1d9c2 /include/fuse_common.h
parentbcc5385cc146c45bfe08e8351e3dcdd1d6354fee (diff)
downloadlibfuse-3a77047661e345939e36f761db7a7a04ae632b76.tar.gz
fix
Diffstat (limited to 'include/fuse_common.h')
-rw-r--r--include/fuse_common.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h
index 96f4702..979c092 100644
--- a/include/fuse_common.h
+++ b/include/fuse_common.h
@@ -13,6 +13,8 @@
#ifndef _FUSE_COMMON_H_
#define _FUSE_COMMON_H_
+#include <stdint.h>
+
/** Major version of FUSE library interface */
#define FUSE_MAJOR_VERSION 2
@@ -31,14 +33,17 @@
extern "C" {
#endif
-/** Information about open files */
+/**
+ * Information about open files
+ *
+ * Changed in version 2.5
+ */
struct fuse_file_info {
/** Open flags. Available in open() and release() */
int flags;
- /** File handle. May be filled in by filesystem in open().
- Available in all other file operations */
- unsigned long fh;
+ /** Old file handle, don't use */
+ unsigned long fh_old;
/** In case of a write operation indicates if this was caused by a
writepage */
@@ -51,6 +56,13 @@ struct fuse_file_info {
/** Can be filled in by open, to indicate, that cached file data
need not be invalidated. Introduced in version 2.4 */
unsigned int keep_cache : 1;
+
+ /** Padding. Do not use*/
+ unsigned int padding : 30;
+
+ /** File handle. May be filled in by filesystem in open().
+ Available in all other file operations */
+ uint64_t fh;
};
/*