public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Weissenbacher <mw@dermichi.com>
To: Frank Peng <fpeng@galactic.com.hk>
Cc: xfs@oss.sgi.com
Subject: Re: xfs_quota: cannot set limits.Why ?
Date: Wed, 19 Aug 2009 13:05:10 +0200	[thread overview]
Message-ID: <4A8BDC66.5080008@dermichi.com> (raw)
In-Reply-To: <20090819101701.M38080@galactic.com.hk>

Hi Frank!
The problem is that you cannot set usrquota and grpquota via a remount command. You must take care that these flags are set on the very first mount of the filesystem. Otherwise they are silently ignored and quotas are not enforced at all.

hth,
Michael

-------- Original-Nachricht --------
Betreff: xfs_quota: cannot set limits.Why ?
Von: Frank Peng <fpeng@galactic.com.hk>
An: xfs@oss.sgi.com
Datum: 19.08.2009 12:21

> Dear sir,
> 
> linux-nr79:~ # cat /etc/issue
> Welcome to openSUSE 11.1 - Kernel \r (\l).
> 
> linux-nr79:/boot # cat config-2.6.27.7-9-default | grep XFS
> CONFIG_XFS_FS=m
> CONFIG_XFS_QUOTA=y
> CONFIG_XFS_DMAPI=y
> CONFIG_XFS_POSIX_ACL=y
> CONFIG_XFS_RT=y
> # CONFIG_XFS_DEBUG is not set
> CONFIG_VXFS_FS=m
> 
> linux-nr79:~ # mount /dev/sdc1 /xfs
> linux-nr79:~ # mount -o remount,usrquota,grpquota /xfs
> 
> linux-nr79:~ # mount
> /dev/sda2 on / type ext3 (rw,acl,user_xattr)
> /proc on /proc type proc (rw)
> sysfs on /sys type sysfs (rw)
> debugfs on /sys/kernel/debug type debugfs (rw)
> udev on /dev type tmpfs (rw)
> devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
> fusectl on /sys/fs/fuse/connections type fusectl (rw)
> securityfs on /sys/kernel/security type securityfs (rw)
> /dev/sdc2 on /ext3 type ext3 (rw,usrquota,grpquota)
> /dev/sdc1 on /xfs type xfs (rw,usrquota,grpquota)
> 
> linux-nr79:~ # xfs_quota -x -c 'limit bsoft=5m bhard=6m user01' /xfs
> xfs_quota: cannot set limits: Function not implemented
> 
> Why cannot set limits? Any idea how I can use xfs quota? 
> Thanks.
> 
> 
> Best Regards,
> Frank
> 
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
> 

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

      reply	other threads:[~2009-08-19 11:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-19 10:21 xfs_quota: cannot set limits.Why ? Frank Peng
2009-08-19 11:05 ` Michael Weissenbacher [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A8BDC66.5080008@dermichi.com \
    --to=mw@dermichi.com \
    --cc=fpeng@galactic.com.hk \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox