diff options
author | Raghavendra G <raghavendra@gluster.com> | 2012-01-18 10:21:21 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-03-18 01:54:38 -0700 |
commit | 0190bf4726773a83081eb0935697c7a616edf0dd (patch) | |
tree | a52d22d7dfc97d7eeb4ce10dbc622deb6e2b59fa /xlators/mount/fuse/src/fuse-bridge.h | |
parent | b59b5256a69db2f3f5bcf32693054a32237fe843 (diff) |
mount/fuse: Inherit direct-io-mode values from fds already opened, for a new fd being opened.
When an fd is being opened, it inherits direct-io-mode characterstics
(either enabled or disabled) from the fds already opened on inode. If none
are opened and user has not specified the mode through cmdline options,
default mode is used.
Change-Id: I0c9e959100e9130e46bbd16d63eca278260635b4
BUG: 801
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Reviewed-on: http://review.gluster.com/20
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Csaba Henk <csaba@redhat.com>
Diffstat (limited to 'xlators/mount/fuse/src/fuse-bridge.h')
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.h b/xlators/mount/fuse/src/fuse-bridge.h index 41ea2c31916..61249d9d423 100644 --- a/xlators/mount/fuse/src/fuse-bridge.h +++ b/xlators/mount/fuse/src/fuse-bridge.h @@ -276,6 +276,11 @@ typedef struct { xlator_t *old_xl; } fuse_state_t; +typedef struct fuse_fd_ctx { + uint32_t open_flags; + fd_t *fd; +} fuse_fd_ctx_t; + typedef void (*fuse_resume_fn_t) (fuse_state_t *state); GF_MUST_CHECK int32_t @@ -292,4 +297,6 @@ inode_t *fuse_ino_to_inode (uint64_t ino, xlator_t *fuse); int fuse_resolve_and_resume (fuse_state_t *state, fuse_resume_fn_t fn); int send_fuse_err (xlator_t *this, fuse_in_header_t *finh, int error); int fuse_gfid_set (fuse_state_t *state); +fuse_fd_ctx_t * __fuse_fd_ctx_check_n_create (fd_t *fd, xlator_t *this); +fuse_fd_ctx_t * fuse_fd_ctx_check_n_create (fd_t *fd, xlator_t *this); #endif /* _GF_FUSE_BRIDGE_H_ */ |