xfs
[Top] [All Lists]

RE: Quota enable & disable.

To: "'Antonio Ciorri'" <aciorri@xxxxxxxxxxx>
Subject: RE: Quota enable & disable.
From: "DICKENS,CARY (HP-Loveland,ex2)" <cary.dickens2@xxxxxx>
Date: Fri, 14 Mar 2003 18:45:28 -0500
Cc: "'linux-xfs@xxxxxxxxxxx'" <linux-xfs@xxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
Antonio,

I'm no expert, but I have been able to turn enforcement on and off without
any problems.  I can't remember when it happened, but there were some
changes to the quota system that made it impossible to remount a volume and
turn quotas on.  Earlier xfs versions allowed this, the current versions do
not.  The volume in question must be mounted with quotas enabled and then
you toggle enforcement on and off.

What mount options do you use?  I know that I _might_ want to have quotas on
a file volume I am using, so I mount it with the following quota options:
quota,qnoenforce,grpquota,gqnoenforce

This way when I need to turn quota enforcement on, I can.  The filesystem
has been keeping the quotas calculated and all I have to do is send the
quotactl command with Q_XQUOTAON.

Example: quotactl(QCMD(Q_XQUOTAON,USRQUOTA), deviceFile, 0, (caddr_t)
XFS_QUOTA_UDQ_ENFD);

I hope this helps.

Cary

> -----Original Message-----
> From: Antonio Ciorri [mailto:aciorri@xxxxxxxxxxx] 
> Sent: Friday, March 14, 2003 12:03 PM
> To: 'linux-xfs@xxxxxxxxxxx'
> Subject: Quota enable & disable.
> 
> 
> Using quotas on our file systems:
> 
> - We automatically enable the user quota enforcer in a file 
> system when mounting with flag usrquota.
> - When the enforcer has to be disabled, we send a quotactl 
> cmd with the option Q_XQUOTAOFF, later on when trying to 
> enforce user quota, we have tried two ways:
> 1) sending quotactl cmd with the option Q_XQUOTAON, which is 
> not working for us since it does not failed but the enforce 
> is not being enabled or 2) by issuing a FS remount with flag 
> usrquota, neither one of the above have been successful on 
> enabling the user quota enforcer. So far unmounting the FS 
> and mounting it again with flag usrquota is the only wait it 
> has proven to be successful.
> 
> Does anyone of you run into this before?.
> 
> Thanks,
> 
> Antonio. 
> 
> 


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