Re: Enforcing quota for root user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 11, 2014 at 04:35:31PM -0700, Chris Murphy wrote:
> 
> On Nov 11, 2014, at 3:32 PM, Dave Chinner <david@xxxxxxxxxxxxx>
> wrote:
> 
> > On Tue, Nov 11, 2014 at 11:00:25AM -0700, Chris Murphy wrote:
> >> 
> >> On Nov 11, 2014, at 8:36 AM, Stan Hoeppner
> >> <stan@xxxxxxxxxxxxxxxxx> wrote:
> >> 
> >>> On 11/11/2014 04:22 AM, Cyril Scetbon wrote:
> >>>> That's what I've read first, but someone showed me a sample
> >>>> where it works. He just told me he was using project quota.
> >>>> However, does it make sense ?  I've also read somewhere else
> >>>> that quota is never enforced for root user (id,gid=0) that's
> >>>> why I was testing it ....
> >>> 
> >>> No, it doesn't make sense.  Why would you want to enforce
> >>> quotas for root?
> >> 
> >> A week ago I tried this and project quotas appear to apply to
> >> root.
> > 
> > By intent and design. Project quotas are not a user/group based
> > quota and so there is no exemption for any user.
> 
> It’s what I’d expect. I considered the documentation to be
> slightly misleading where is says soft and hard limits are never
> applied to the root user. The project quota does have a soft and
> hard limit. The soft limit, seemed not to apply to the root user -
> at least there was no soft limit warning anywhere when it was
> busted. But the hard limit definitely applied.
> 
> http://xfs.org/docs/xfsdocs-xml-dev/XFS_User_Guide/tmp/en-US/html/ch08s04.html

So write a patch to fix the documentation. Repo is here:

git://git.kernel.org/pub/scm/fs/xfs/xfsdocs-xml-dev.git

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs





[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux