]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_quota: fix free command for foreign fs
authorEric Sandeen <sandeen@redhat.com>
Mon, 19 Sep 2016 06:07:50 +0000 (16:07 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 19 Sep 2016 06:07:50 +0000 (16:07 +1000)
commit2f7d04230b4d39bde047910b5a259ff2fc1d47d2
tree7667532d4dd9078b7e426f6f0046e1866fe2fca6
parentcb3567186087b9f8993ebd57186f13f3ad0a0ead
xfs_quota: fix free command for foreign fs

The "free" command is really just a fancy df that knows about
log space and realtime blocks for an xfs filesystem.

We can simply use statfs to get more or less the same thing
on a non-xfs filesystem, so, ah, do that I guess, and re-enable
it.

# quota/xfs_quota -f -x -c path -c free /mnt/test
          Filesystem          Pathname
[000] (F) /mnt/test           /dev/sdb1 (uquota)

Filesystem           1K-blocks       Used  Available  Use% Pathname
/dev/sdb1             20511356      45000   20466356    0% /mnt/test

Fix the short help text for -N while we're at it.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Bill O'Donnell <billodo@redhat.com
Signed-off-by: Dave Chinner <david@fromorbit.com>
quota/free.c