aboutsummaryrefslogtreecommitdiff
path: root/include/fuse_common.h
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <miklos@szeredi.hu>2005-07-13 14:08:19 +0000
committerGravatar Miklos Szeredi <miklos@szeredi.hu>2005-07-13 14:08:19 +0000
commit76c1752f14177a5c56f9cfa5aaac5b346823d47b (patch)
tree3350af334c3ef9a1893a16e14ea94ba404fa8b72 /include/fuse_common.h
parent4331a2721ca6f8770d8e828eb95a01f31114fa5a (diff)
inode based API first working version
Diffstat (limited to 'include/fuse_common.h')
-rw-r--r--include/fuse_common.h28
1 files changed, 6 insertions, 22 deletions
diff --git a/include/fuse_common.h b/include/fuse_common.h
index cd19435..96359ef 100644
--- a/include/fuse_common.h
+++ b/include/fuse_common.h
@@ -10,6 +10,9 @@
#error "Never include <fuse_common.h> directly; use <fuse.h> or <fuse_lowlevel.h instead."
#endif
+#ifndef _FUSE_COMMON_H_
+#define _FUSE_COMMON_H_
+
/** Information about open files */
struct fuse_file_info {
/** Open flags. Available in open() and release() */
@@ -22,28 +25,9 @@ struct fuse_file_info {
/** In case of a write operation indicates if this was caused by a
writepage */
int writepage;
-};
-
-/** Extra context that may be needed by some filesystems
- *
- * The uid, gid and pid fields are not filled in case of a writepage
- * operation.
- */
-struct fuse_context {
- /** Pointer to the fuse object */
- struct fuse *fuse;
-
- /** User ID of the calling process */
- uid_t uid;
- /** Group ID of the calling process */
- gid_t gid;
-
- /** Thread ID of the calling process */
- pid_t pid;
-
- /** Private filesystem data */
- void *private_data;
+ /** Can be filled in by open, to use direct I/O on this file */
+ unsigned int direct_io : 1;
};
-
+#endif /* _FUSE_COMMON_H_ */