Re: Quota lockups

Bill Hawes (whawes@transmeta.com)
Tue, 13 Oct 1998 10:54:37 -0700


Jonathan Corbet wrote:

> > I did quite a bit of stress testing for the quota code and wasn't able to
> > trigger any stuck processes. Could you put together a script to reproduce the
> > problem?
>
> I posted some time ago the sure way to lock up the quota code: have an
> empty 'quota.user' file. Then do something that causes somebody to
> allocate space on the device. The file system gets locked once to make the
> quota change, then again because the first block of the quota file needs to
> be allocated, which requires another quota modification. *Lock*.
>
> Running "quotacheck" before enabling quotas fixes the problem;
> unfortunately Red Hat's startup script does it wrong (with the fs
> unmounted) so the new quota.user gets written in the wrong place.
>
> The most straightforward fix would be to force the existence of the first
> block of the quota file before allowing quotas to be turned on. But this
> has the look of the sort of band-aid fix that Linus doesn't like, for good
> reason...

This strikes me as basically an administrative problem -- a quota.user file is a
prerequisite for quota operations, and it existence and allocation should be
verified before quotas are turned on.

So having quotaon verify that the quota.user file is OK sounds reasonable to me,
and whatever problems exist in the redhat scripts should be fixed there.

Regards,
Bill

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/