public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* xfs directory quota doesn't work
@ 2015-08-21  9:05 Simon Xia
  2015-08-21 11:21 ` Brian Foster
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Xia @ 2015-08-21  9:05 UTC (permalink / raw)
  To: xfs


[-- Attachment #1.1: Type: text/plain, Size: 1654 bytes --]

hi, everyone, I encounter a problem when using xfs

now I have two tasks and I wanna run them in different directory and limit
the directory’s size. I use xfs’s project quota to achieve this.

I follow the steps from here:
https://solidlinux.wordpress.com/2012/12/09/xfs-quota-managament/

here is detail of my two config files

/etc/projects:

11:/home/xiameng.xm/xfs_dir/task1
12:/home/xiameng.xm/xfs_dir/task2

/etc/projid:

task1:11
task2:12

and here is my step:

touch test_xfs
dd if=/dev/zero of=test_xfs bs=1000000 count=1
mkfs.xfs test_xfs

mkdir xfs_dir
mount test_xfs ./xfs_dir -o pquota,loop

xfs_quota -xc 'project –s task1' /home/xiameng.xm/xfs_dir
xfs_quota -xc 'project –s task2' /home/xiameng.xm/xfs_dir

xfs_quota -x -c 'limit -p bhard=2m task1' /home/xiameng.xm/xfs_dir
xfs_quota -x -c 'limit -p bhard=10m task2' /home/xiameng.xm/xfs_dir

here is the output of xfs_quota -x -c 'report /home/xiameng.xm/xfs_dir'

Project quota on /home/xiameng.xm/xfs_dir (/dev/loop1)
                               Blocks
Project ID       Used       Soft       Hard    Warn/Grace
---------- --------------------------------------------------
task1               0          0       2048     00 [--------]
task2               0          0      10240     00 [--------]

the question is no mater how large I create a file in ./xfs_dir/task1 or
./xfs_dir/task2, it success!

the quota limit doesn’t work!

Any help will be appreciated :)


ps: I also post my question here:
http://unix.stackexchange.com/questions/224606/xfs-directory-quota-doesnt-work

----

Best Regards
Simon Xia
​

[-- Attachment #1.2: Type: text/html, Size: 9449 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-24 12:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-21  9:05 xfs directory quota doesn't work Simon Xia
2015-08-21 11:21 ` Brian Foster
2015-08-24  6:43   ` Simon Xia
2015-08-24 12:02     ` Brian Foster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox