xfs
[Top] [All Lists]

Re: possible to reserve space for superuser ?

To: linux-xfs@xxxxxxxxxxx
Subject: Re: possible to reserve space for superuser ?
From: Ethan Benson <erbenson@xxxxxxxxxx>
Date: Tue, 23 Oct 2001 15:47:34 -0800
In-reply-to: <200110231924.f9NJOjG12615@xxxxxxxxxxxxxxxxxxxx>; from lord@xxxxxxx on Tue, Oct 23, 2001 at 02:24:45PM -0500
Mail-copies-to: nobody
Mail-followup-to: linux-xfs@xxxxxxxxxxx
References: <christian.guggenberger@xxxxxxxxxxxxxxxxxxxxxx> <200110231924.f9NJOjG12615@xxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Tue, Oct 23, 2001 at 02:24:45PM -0500, Steve Lord wrote:
> > Hi there,
> > 
> > is it possible to reserve partition space for the superuser ? ("good old"
> > ext2 can handle this)
> > I did4n4t find anything usefull about this in the Docs, so post to you !
> > 
> > Can Quota be a solution for my problem ?
> > 
> > thank you,
> > Christian Guggenberger
> 
> Not simply, it was not a concept built into the original xfs design,
> so it would take some surgery - and the concept of a super user is not
> as simple as it used to be, this would probably be based on some
> capability (OK, thats a minor implementation detail).

well to clarify things.  ext2 is not reserving space for the superuser
at all, it simply reserves a certain number of blocks (by default 5%
of the filesystem, set at mkfs time) for a certain uid and gid, the
default is 0 0, which under most traditional systems happens to be the
superuser.  

under ext2 you can just as easily give this reserved space away to any
user, or a group of users.  man tune2fs.

> Quotas could do it - but only by restricting everone else on the 
> filesystem to a total less than the fs size.

semi inconvenient, but if your adduser allows hooks (like debian's)
its not that difficult to automate.

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpVQSoXNeNCE.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>