fuse 2.8 support for xlator/fuse

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
This commit is contained in:
Harshavardhana
2009-07-01 04:13:29 +00:00
committed by Anand V. Avati
parent 5feb0ccb6e
commit c284d5e737
2 changed files with 23 additions and 0 deletions

View File

@ -2641,6 +2641,11 @@ init (xlator_t *this_xl)
ret = fuse_opt_add_arg(&args, "-ononempty");
if (ret != -1)
ret = fuse_opt_add_arg(&args, "-odev");
#ifdef HAVE_FUSE_VERSION_28
if (ret != -1)
ret = fuse_opt_add_arg(&args, "-obig_writes");
#endif /* FUSE 2.8 */
#endif /* LINUX */
#endif /* ! DARWIN_OS */

View File

@ -54,6 +54,23 @@ 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;
uid_t owner;
struct fuse_conn_info conn;
struct fuse_req list;
struct fuse_req interrupts;
pthread_mutex_t lock;
int got_destroy;
};
#else
struct fuse_ll {
int debug;
int allow_root;
@ -67,6 +84,7 @@ struct fuse_ll {
pthread_mutex_t lock;
int got_destroy;
};
#endif /* FUSE 2.8 */
struct fuse_out_header {
uint32_t len;