]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_quota: certain commands must always be available
authorBill O'Donnell <billodo@redhat.com>
Fri, 26 Aug 2016 01:20:37 +0000 (11:20 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 26 Aug 2016 01:20:37 +0000 (11:20 +1000)
commitb20b6c22cd57f7f1671b7b8acd2c4610fcb9ade2
treefd195a2b10b40b2f0694d5a7425063a84f586b97
parent29647c8d572d9364c0f599932f2153af8f306966
xfs_quota: certain commands must always be available

Add CMD_ALL_FSTYPES to enable basic xfs_quota commands (e.g. help,
quit) to be run regardless of the filesystem type we are operating
on.

Use CMD_FLAG_FOREIGN_OK on commands suitable for foreign filesystems.
Refactor init_check_command in quota/init.c for clarity.

[ dchinner: CMD_SKIP_CHECK -> CMD_ALL_FSTYPES ]

Signed-off-by: Bill O'Donnell <billodo@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxcmd/help.c
libxcmd/quit.c
quota/init.c
quota/init.h