[PATCH 7/9] xfstests: add a new quota test that runs fsstress under ENOSPC conditions
Dmitry Monakhov
dmonakhov at openvz.org
Mon Nov 7 00:15:33 CST 2011
On Thu, 3 Nov 2011 15:39:35 -0400, Christoph Hellwig <hch at infradead.org> wrote:
> On Thu, Nov 03, 2011 at 09:55:51PM +0400, Dmitry Monakhov wrote:
> > - Same as 264 but with quota enabled.
>
> 269 is the new 270
>
> > - IO performed from $qa_user user
> > - fsstress granted with CAP_CHOWN capability.
>
> This fails in my test VM because it doesn't have setcap. If you
> want to use additional non-standard tools please do a _notrun if
> they aren't present.
>
> I don't quite understand why it would need CAP_CHOWN - chowns
> from owned files do not require it, and the test runs fine with
> the setcap line commented out.
Yes, but fsstress want chown to random uid/gid
int inode_change_ok(..)
...
/* Make sure a caller can chown. */
if ((ia_valid & ATTR_UID) &&
(current_fsuid() != inode->i_uid ||
attr->ia_uid != inode->i_uid) && !capable(CAP_CHOWN))
return -EPERM;
More information about the xfs
mailing list