xfs_quota: cannot set limits ??

linux-nr79:~ # cat /etc/issue
Welcome to openSUSE 11.1 - Kernel \r (\l).

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?

frankpeng2009 wrote:

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

Maybe you are being bitten by this bug :-?

Bug 781 - xfs_quota doesn’t report success/failure in exit status
http://oss.sgi.com/bugzilla/show_bug.cgi?id=781

Just check if the quotas are already set.

Greetings,


Camaleón

Thanks for your reply.

I can’t find the aquota.user file In the mounted directory. So the quotas are not set.

Can someone help me?

frankpeng2009 wrote:

> Thanks for your reply.
>
> I can’t find the aquota.user file In the mounted directory. So the
> quotas are not set.

Maybe you are missing some step (shouldn’t those files be manually created?,
defining a quota use in /etc/fstab…), dunno :-?

Have a look under the docs located
at “/usr/share/doc/packages/xfsprogs/README”

Greetings,


Camaleón

I find the problem that we cannot set usrquota and grpquota via a remount command.But JFS and EXT3 can set.

Another question:
The xfs_quota do not make a file named aquota.user? It’s different from JFS and ext3 too.