dir.c (10556cb21a0d0b24d95f00ea6df16f599a3345b2) | dir.c (8a5e929dd2e05ab4d3d89f58c5e8fca596af8f3a) |
---|---|
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 --- 368 unchanged lines hidden (view full) --- 377 struct fuse_conn *fc = get_fuse_conn(dir); 378 struct fuse_req *req; 379 struct fuse_forget_link *forget; 380 struct fuse_create_in inarg; 381 struct fuse_open_out outopen; 382 struct fuse_entry_out outentry; 383 struct fuse_file *ff; 384 struct file *file; | 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 --- 368 unchanged lines hidden (view full) --- 377 struct fuse_conn *fc = get_fuse_conn(dir); 378 struct fuse_req *req; 379 struct fuse_forget_link *forget; 380 struct fuse_create_in inarg; 381 struct fuse_open_out outopen; 382 struct fuse_entry_out outentry; 383 struct fuse_file *ff; 384 struct file *file; |
385 int flags = nd->intent.open.flags - 1; | 385 int flags = nd->intent.open.flags; |
386 387 if (fc->no_create) 388 return -ENOSYS; 389 390 if (flags & O_DIRECT) 391 return -EINVAL; 392 393 forget = fuse_alloc_forget(); --- 1243 unchanged lines hidden --- | 386 387 if (fc->no_create) 388 return -ENOSYS; 389 390 if (flags & O_DIRECT) 391 return -EINVAL; 392 393 forget = fuse_alloc_forget(); --- 1243 unchanged lines hidden --- |