]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - quota/quota.c
xfs_quota: add capabilities for use on non-XFS filesystems
authorBill O'Donnell <billodo@redhat.com>
Fri, 26 Aug 2016 01:20:32 +0000 (11:20 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 26 Aug 2016 01:20:32 +0000 (11:20 +1000)
commit29647c8d572d9364c0f599932f2153af8f306966
treec53efefcc53bde19409f05b3fe9d6b6d04b3d93a
parentbb92709f2e26c595b31d6f5dfc65e1aa120fd39b
xfs_quota: add capabilities for use on non-XFS filesystems

This patch allows xfs_quota to be used on ext4 for project quota
testing in xfstests.  It was based on work originally from Dave
Chinner. As a part of its support for foreign filesystems xfs_quota
is modified with a "-f" command line flag to enable select commands
on those filesystems.

This requires us to discriminate different filesystem types when
walking the fileystem table during argument processing as the table
is now populated with mounted non-XFS filesystems. We should only
select a foreign filesystem mount point if the "-f" flag is present
on the command line.

This patch also updates the usage and man page information
for the new CLI flag appropriately.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Bill O'Donnell <billodo@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
15 files changed:
include/command.h
include/path.h
io/init.h
libxcmd/paths.c
man/man8/xfs_quota.8
quota/free.c
quota/init.c
quota/init.h
quota/path.c
quota/project.c
quota/quot.c
quota/quota.c
quota/report.c
quota/state.c
quota/util.c