Re: Quota lockups

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 13 Oct 1998 01:48:56 +0100 (BST)


> 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*.

Quota files arent supposed to have holes in them

> 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...

Not quotaing a quota block allocation would be the logical answer but its
not trivial and you don't want to propogate tons of "is this a quota block"
flags around

-
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/