inode.c (1fb69e7817296da8a6824804bb206ca1e7f31425) | inode.c (c79e322f63592c00b25b17af6a1782fad6c6fe6e) |
---|---|
1/* 2 FUSE: Filesystem in Userspace 3 Copyright (C) 2001-2006 Miklos Szeredi <miklos@szeredi.hu> 4 5 This program can be distributed under the terms of the GNU GPL. 6 See the file COPYING. 7*/ 8 --- 539 unchanged lines hidden (view full) --- 548 549static void fuse_send_init(struct fuse_conn *fc, struct fuse_req *req) 550{ 551 struct fuse_init_in *arg = &req->misc.init_in; 552 553 arg->major = FUSE_KERNEL_VERSION; 554 arg->minor = FUSE_KERNEL_MINOR_VERSION; 555 arg->max_readahead = fc->bdi.ra_pages * PAGE_CACHE_SIZE; | 1/* 2 FUSE: Filesystem in Userspace 3 Copyright (C) 2001-2006 Miklos Szeredi <miklos@szeredi.hu> 4 5 This program can be distributed under the terms of the GNU GPL. 6 See the file COPYING. 7*/ 8 --- 539 unchanged lines hidden (view full) --- 548 549static void fuse_send_init(struct fuse_conn *fc, struct fuse_req *req) 550{ 551 struct fuse_init_in *arg = &req->misc.init_in; 552 553 arg->major = FUSE_KERNEL_VERSION; 554 arg->minor = FUSE_KERNEL_MINOR_VERSION; 555 arg->max_readahead = fc->bdi.ra_pages * PAGE_CACHE_SIZE; |
556 arg->flags |= FUSE_ASYNC_READ | FUSE_POSIX_LOCKS; | 556 arg->flags |= FUSE_ASYNC_READ | FUSE_POSIX_LOCKS | FUSE_FILE_OPS; |
557 req->in.h.opcode = FUSE_INIT; 558 req->in.numargs = 1; 559 req->in.args[0].size = sizeof(*arg); 560 req->in.args[0].value = arg; 561 req->out.numargs = 1; 562 /* Variable length arguement used for backward compatibility 563 with interface version < 7.5. Rest of init_out is zeroed 564 by do_get_request(), so a short reply is not a problem */ --- 295 unchanged lines hidden --- | 557 req->in.h.opcode = FUSE_INIT; 558 req->in.numargs = 1; 559 req->in.args[0].size = sizeof(*arg); 560 req->in.args[0].value = arg; 561 req->out.numargs = 1; 562 /* Variable length arguement used for backward compatibility 563 with interface version < 7.5. Rest of init_out is zeroed 564 by do_get_request(), so a short reply is not a problem */ --- 295 unchanged lines hidden --- |