diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-09-14 18:43:27 -0700 |
---|---|---|
committer | Eryu Guan <guaneryu@gmail.com> | 2020-09-21 00:46:26 +0800 |
commit | 5f98984ec79d1c69e2516b4276b156bf265d70d2 (patch) | |
tree | a7fd98615001fd448e571272d5637e8a31f02591 | |
parent | 8c4d2b38fc51e88d0533f954d15aebed43d6e3a4 (diff) |
xfs/{019, 031}: make sure we don't set rtinherit=1 on mkfs
mkfs.xfs does not support setting rtinherit on the root directory /and/
pre-populating the filesystem with protofiles, so don't run this test if
rtinherit is in the mkfs options.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
-rwxr-xr-x | tests/xfs/019 | 5 | ||||
-rwxr-xr-x | tests/xfs/031 | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/xfs/019 b/tests/xfs/019 index f42b62bb..aa5365e7 100755 --- a/tests/xfs/019 +++ b/tests/xfs/019 @@ -51,6 +51,11 @@ _supported_os Linux _require_scratch +# mkfs cannot create a filesystem with protofiles if realtime is enabled, so +# don't run this test if the rtinherit is anywhere in the mkfs options. +echo "$MKFS_OPTIONS" | grep -q "rtinherit" && \ + _notrun "Cannot mkfs with a protofile and -d rtinherit." + protofile=$tmp.proto tempfile=$tmp.file diff --git a/tests/xfs/031 b/tests/xfs/031 index 6403fd40..671b6727 100755 --- a/tests/xfs/031 +++ b/tests/xfs/031 @@ -81,6 +81,11 @@ _supported_os Linux _require_scratch _require_no_large_scratch_dev +# mkfs cannot create a filesystem with protofiles if realtime is enabled, so +# don't run this test if the rtinherit is anywhere in the mkfs options. +echo "$MKFS_OPTIONS" | grep -q "rtinherit" && \ + _notrun "Cannot mkfs with a protofile and -d rtinherit." + # sanity test - default + one root directory entry # Note: must do this proto/mkfs now for later inode size calcs _create_proto 0 |