Date: Thu, 24 May 2012 11:50:14 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r235902 - stable/9/sys/fs/unionfs Message-ID: <201205241150.q4OBoELP036296@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Thu May 24 11:50:14 2012 New Revision: 235902 URL: http://svn.freebsd.org/changeset/base/235902 Log: MFC r226234: Make unionfs also clear VAPPEND when clearing VWRITE, since VAPPEND is just a modifier for VWRITE. Modified: stable/9/sys/fs/unionfs/union_vnops.c Directory Properties: stable/9/sys/ (props changed) stable/9/sys/fs/ (props changed) Modified: stable/9/sys/fs/unionfs/union_vnops.c ============================================================================== --- stable/9/sys/fs/unionfs/union_vnops.c Thu May 24 11:46:39 2012 (r235901) +++ stable/9/sys/fs/unionfs/union_vnops.c Thu May 24 11:50:14 2012 (r235902) @@ -736,7 +736,7 @@ unionfs_access(struct vop_access_args *a return (error); } } - accmode &= ~VWRITE; + accmode &= ~(VWRITE | VAPPEND); accmode |= VREAD; /* will copy to upper */ } error = VOP_ACCESS(lvp, accmode, ap->a_cred, td);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205241150.q4OBoELP036296>