xfs: filter out mount options that don't work on v4 filesystems
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 18 Dec 2018 20:36:16 +0000 (12:36 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sat, 22 Dec 2018 15:45:29 +0000 (23:45 +0800)
commit3a2aed3ae46f47e9dfb58514405fb94026796b73
tree42c645edf92cfd4feecccf400674aa32b8f554bd
parentb0415daaa96877ac6a5d75cb264dddc0c6785384
xfs: filter out mount options that don't work on v4 filesystems

A few tests require v4 filesystems and enforce this by disabling
crc's in the _scratch_mkfs call.  However, if the user specified
MOUNT_OPTIONS that only work with v5 filesystems, these tests fail.
If we detect a test creating a v4 scratch filesystem, filter out
incompatible mount options that don't work on v4, such as
simultaneous group/project quota.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/xfs