On Fri, Sep 15, 2006 at 12:44:16PM -0400, Stephane Doyon wrote:
> [Resending. Seems my previous post did not make it somehow...]
> The mechanism allowing to reserve file system blocks, xfs_reserve_blocks()
> / XFS_IOC_SET_RESBLKS, appears to have been broken by the patch that
> introduced per-cpu superblock counters.
Thanks for finding this, Stephane. It turns out our xfsqa test that
is supposed to test this feature only tests whether the ioctl
succeeds or fails - it doesn't check whether values have been set
properly, whether the reservation really is reserved, etc. Hence
we've always got false successes from this test and hence it's never
been noticed as broken.
Your patch is based on a tree that is a little out of date - the
allocation set aside code has already been pushed into
xfs_reserve_blocks(). Unfortunately I didn't notice that this code
didn't work with SMP counters at the same time I realised it needed
to obey the set aside restrictions....
I'll have a fix for the problem soon and get the QA test updated
to test the ioctl properly.
SGI Australian Software Group