From: Sage Weil Date: Wed, 15 Aug 2012 20:30:12 +0000 (-0700) Subject: vfs: fix propagation of atomic_open create error on negative dentry X-Git-Tag: v3.6-rc3~34^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62b2ce964bb901f00a480104bd35a2e1f8d2cf58;p=pandora-kernel.git vfs: fix propagation of atomic_open create error on negative dentry If ->atomic_open() returns -ENOENT, we take care to return the create error (e.g., EACCES), if any. Do the same when ->atomic_open() returns 1 and provides a negative dentry. This fixes a regression where an unprivileged open O_CREAT fails with ENOENT instead of EACCES, introduced with the new atomic_open code. It is tested by the open/08.t test in the pjd posix test suite, and was observed on top of fuse (backed by ceph-fuse). Signed-off-by: Sage Weil Signed-off-by: Miklos Szeredi --- Reading git-diff-tree failed