inode.c (16217dc79dbc599b110dda26d0421df47904bba4) | inode.c (5e940c1dd3c1f7561924954eecee956ec277a79b) |
---|---|
1/* 2 FUSE: Filesystem in Userspace 3 Copyright (C) 2001-2008 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 --- 896 unchanged lines hidden (view full) --- 905 fc->readdirplus_auto = 1; 906 } 907 if (arg->flags & FUSE_ASYNC_DIO) 908 fc->async_dio = 1; 909 if (arg->flags & FUSE_WRITEBACK_CACHE) 910 fc->writeback_cache = 1; 911 if (arg->flags & FUSE_PARALLEL_DIROPS) 912 fc->parallel_dirops = 1; | 1/* 2 FUSE: Filesystem in Userspace 3 Copyright (C) 2001-2008 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 --- 896 unchanged lines hidden (view full) --- 905 fc->readdirplus_auto = 1; 906 } 907 if (arg->flags & FUSE_ASYNC_DIO) 908 fc->async_dio = 1; 909 if (arg->flags & FUSE_WRITEBACK_CACHE) 910 fc->writeback_cache = 1; 911 if (arg->flags & FUSE_PARALLEL_DIROPS) 912 fc->parallel_dirops = 1; |
913 if (arg->flags & FUSE_HANDLE_KILLPRIV) 914 fc->handle_killpriv = 1; |
|
913 if (arg->time_gran && arg->time_gran <= 1000000000) 914 fc->sb->s_time_gran = arg->time_gran; 915 } else { 916 ra_pages = fc->max_read / PAGE_SIZE; 917 fc->no_lock = 1; 918 fc->no_flock = 1; 919 } 920 --- 15 unchanged lines hidden (view full) --- 936 arg->minor = FUSE_KERNEL_MINOR_VERSION; 937 arg->max_readahead = fc->bdi.ra_pages * PAGE_SIZE; 938 arg->flags |= FUSE_ASYNC_READ | FUSE_POSIX_LOCKS | FUSE_ATOMIC_O_TRUNC | 939 FUSE_EXPORT_SUPPORT | FUSE_BIG_WRITES | FUSE_DONT_MASK | 940 FUSE_SPLICE_WRITE | FUSE_SPLICE_MOVE | FUSE_SPLICE_READ | 941 FUSE_FLOCK_LOCKS | FUSE_HAS_IOCTL_DIR | FUSE_AUTO_INVAL_DATA | 942 FUSE_DO_READDIRPLUS | FUSE_READDIRPLUS_AUTO | FUSE_ASYNC_DIO | 943 FUSE_WRITEBACK_CACHE | FUSE_NO_OPEN_SUPPORT | | 915 if (arg->time_gran && arg->time_gran <= 1000000000) 916 fc->sb->s_time_gran = arg->time_gran; 917 } else { 918 ra_pages = fc->max_read / PAGE_SIZE; 919 fc->no_lock = 1; 920 fc->no_flock = 1; 921 } 922 --- 15 unchanged lines hidden (view full) --- 938 arg->minor = FUSE_KERNEL_MINOR_VERSION; 939 arg->max_readahead = fc->bdi.ra_pages * PAGE_SIZE; 940 arg->flags |= FUSE_ASYNC_READ | FUSE_POSIX_LOCKS | FUSE_ATOMIC_O_TRUNC | 941 FUSE_EXPORT_SUPPORT | FUSE_BIG_WRITES | FUSE_DONT_MASK | 942 FUSE_SPLICE_WRITE | FUSE_SPLICE_MOVE | FUSE_SPLICE_READ | 943 FUSE_FLOCK_LOCKS | FUSE_HAS_IOCTL_DIR | FUSE_AUTO_INVAL_DATA | 944 FUSE_DO_READDIRPLUS | FUSE_READDIRPLUS_AUTO | FUSE_ASYNC_DIO | 945 FUSE_WRITEBACK_CACHE | FUSE_NO_OPEN_SUPPORT | |
944 FUSE_PARALLEL_DIROPS; | 946 FUSE_PARALLEL_DIROPS | FUSE_HANDLE_KILLPRIV; |
945 req->in.h.opcode = FUSE_INIT; 946 req->in.numargs = 1; 947 req->in.args[0].size = sizeof(*arg); 948 req->in.args[0].value = arg; 949 req->out.numargs = 1; 950 /* Variable length argument used for backward compatibility 951 with interface version < 7.5. Rest of init_out is zeroed 952 by do_get_request(), so a short reply is not a problem */ --- 113 unchanged lines hidden (view full) --- 1066 goto err; 1067#endif 1068 } else { 1069 sb->s_blocksize = PAGE_SIZE; 1070 sb->s_blocksize_bits = PAGE_SHIFT; 1071 } 1072 sb->s_magic = FUSE_SUPER_MAGIC; 1073 sb->s_op = &fuse_super_operations; | 947 req->in.h.opcode = FUSE_INIT; 948 req->in.numargs = 1; 949 req->in.args[0].size = sizeof(*arg); 950 req->in.args[0].value = arg; 951 req->out.numargs = 1; 952 /* Variable length argument used for backward compatibility 953 with interface version < 7.5. Rest of init_out is zeroed 954 by do_get_request(), so a short reply is not a problem */ --- 113 unchanged lines hidden (view full) --- 1068 goto err; 1069#endif 1070 } else { 1071 sb->s_blocksize = PAGE_SIZE; 1072 sb->s_blocksize_bits = PAGE_SHIFT; 1073 } 1074 sb->s_magic = FUSE_SUPER_MAGIC; 1075 sb->s_op = &fuse_super_operations; |
1076 sb->s_xattr = fuse_xattr_handlers; |
|
1074 sb->s_maxbytes = MAX_LFS_FILESIZE; 1075 sb->s_time_gran = 1; 1076 sb->s_export_op = &fuse_export_operations; 1077 1078 file = fget(d.fd); 1079 err = -EINVAL; 1080 if (!file) 1081 goto err; --- 308 unchanged lines hidden --- | 1077 sb->s_maxbytes = MAX_LFS_FILESIZE; 1078 sb->s_time_gran = 1; 1079 sb->s_export_op = &fuse_export_operations; 1080 1081 file = fget(d.fd); 1082 err = -EINVAL; 1083 if (!file) 1084 goto err; --- 308 unchanged lines hidden --- |