]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_quota: un-flag non-foreign-capable commands
authorEric Sandeen <sandeen@redhat.com>
Mon, 19 Sep 2016 06:06:57 +0000 (16:06 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 19 Sep 2016 06:06:57 +0000 (16:06 +1000)
commitcb3567186087b9f8993ebd57186f13f3ad0a0ead
tree287f130ef388117fd5ff3c8f092a493ed9ee9f92
parent7e59be67ce2dbcec9a5c46d7e51a0dbd38478a64
xfs_quota: un-flag non-foreign-capable commands

The off command calls XFS_QUOTAOFF / Q_XQUOTAOFF, which calls
quota_disable in the kernel, which returns ENOSYS if the
->quota_enable quota op doesn't exist - and it does not exist
on any non-xfs filesystems.

We could get clever if we wanted it, and send Q_QUOTAOFF
instead for foreign filesystems, but for now it's broken
so just remove the flag.

The free command relies on XFS_IOC_FSGEOMETRY_V1, so unflag it
as well.

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
quota/state.c