vfs_inode.c (36b2e922b5acd291051fab25bc7535274ce49532) | vfs_inode.c (8a5e929dd2e05ab4d3d89f58c5e8fca596af8f3a) |
---|---|
1/* 2 * linux/fs/9p/vfs_inode.c 3 * 4 * This file contains vfs inode ops for the 9P2000 protocol. 5 * 6 * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com> 7 * Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov> 8 * --- 620 unchanged lines hidden (view full) --- 629 struct v9fs_session_info *v9ses; 630 struct p9_fid *fid, *inode_fid; 631 632 err = 0; 633 fid = NULL; 634 v9ses = v9fs_inode2v9ses(dir); 635 perm = unixmode2p9mode(v9ses, mode); 636 if (nd && nd->flags & LOOKUP_OPEN) | 1/* 2 * linux/fs/9p/vfs_inode.c 3 * 4 * This file contains vfs inode ops for the 9P2000 protocol. 5 * 6 * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com> 7 * Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov> 8 * --- 620 unchanged lines hidden (view full) --- 629 struct v9fs_session_info *v9ses; 630 struct p9_fid *fid, *inode_fid; 631 632 err = 0; 633 fid = NULL; 634 v9ses = v9fs_inode2v9ses(dir); 635 perm = unixmode2p9mode(v9ses, mode); 636 if (nd && nd->flags & LOOKUP_OPEN) |
637 flags = nd->intent.open.flags - 1; | 637 flags = nd->intent.open.flags; |
638 else 639 flags = O_RDWR; 640 641 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, 642 v9fs_uflags2omode(flags, 643 v9fs_proto_dotu(v9ses))); 644 if (IS_ERR(fid)) { 645 err = PTR_ERR(fid); --- 779 unchanged lines hidden --- | 638 else 639 flags = O_RDWR; 640 641 fid = v9fs_create(v9ses, dir, dentry, NULL, perm, 642 v9fs_uflags2omode(flags, 643 v9fs_proto_dotu(v9ses))); 644 if (IS_ERR(fid)) { 645 err = PTR_ERR(fid); --- 779 unchanged lines hidden --- |