diff options
| author | Harshavardhana <harsha@zresearch.com> | 2009-07-01 04:13:29 +0000 |
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2009-07-01 18:32:20 -0700 |
| commit | c284d5e73760aef176eefa25ee2054a67662bf98 (patch) | |
| tree | 25b68a0d13794afed02f060c882cb5e6003271e4 /xlators/mount/fuse/src/fuse-extra.c | |
| parent | 5feb0ccb6efc006b2b17d29509b63a41fa14293c (diff) | |
fuse 2.8 support for xlator/fuse
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'xlators/mount/fuse/src/fuse-extra.c')
| -rw-r--r-- | xlators/mount/fuse/src/fuse-extra.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-extra.c b/xlators/mount/fuse/src/fuse-extra.c index 95bd0f3ad1c..422ff4b563d 100644 --- a/xlators/mount/fuse/src/fuse-extra.c +++ b/xlators/mount/fuse/src/fuse-extra.c @@ -54,9 +54,12 @@ struct fuse_req { struct fuse_req *prev; }; +#ifdef HAVE_FUSE_VERSION_28 struct fuse_ll { int debug; int allow_root; + int atomic_o_trunc; + int big_writes; struct fuse_lowlevel_ops op; int got_init; void *userdata; @@ -67,6 +70,21 @@ struct fuse_ll { pthread_mutex_t lock; int got_destroy; }; +#else +struct fuse_ll { + int debug; + int allow_root; + struct fuse_lowlevel_ops op; + int got_init; + void *userdata; + uid_t owner; + struct fuse_conn_info conn; + struct fuse_req list; + struct fuse_req interrupts; + pthread_mutex_t lock; + int got_destroy; +}; +#endif /* FUSE 2.8 */ struct fuse_out_header { uint32_t len; |
