]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_quota: warn if specified non-zero quota will be round down to zero
authorArkadiusz Miskiewicz <arekm@maven.pl>
Tue, 30 Dec 2008 17:32:01 +0000 (18:32 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Tue, 30 Dec 2008 17:32:01 +0000 (18:32 +0100)
commit39d09609abfe3ed20d4a26c61ea7fc151295dd12
tree24ac21fc524be8a0995d1431bde118d89d0d6997
parent57cc6e78ab3ed5404c4a108b03d5d051ca5bb316
xfs_quota: warn if specified non-zero quota will be round down to zero

User specified quota limit is internally converted to "basic blocks"
unit (512 bytes in size). Quota value will be silently converted
to zero when user enters any value lower than 512 bytes.

Warn in such case:

: # ./xfs_quota -x -c "limit -u bsoft=431 12000" /home
: xfs_quota: Warning: `431' in quota blocks is 0 (unlimited).

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
po/pl.po
quota/edit.c