diff options
author | Darrick J. Wong <djwong@kernel.org> | 2023-09-25 14:42:46 -0700 |
---|---|---|
committer | Zorro Lang <zlang@kernel.org> | 2023-10-05 22:40:47 +0800 |
commit | 4609e9481fe879f539e433b0710f53401d13d4ba (patch) | |
tree | f2d32a70eb2db420e61ad81b17dbdfdde56ce4f1 | |
parent | 809fd13575df7ea09223f7394676d16ba1c25c4c (diff) | |
download | xfstests-dev-4609e9481fe879f539e433b0710f53401d13d4ba.tar.gz |
xfs/018: make sure that larp mode actually works
Skip this test if larp mode doesn't work.
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
-rwxr-xr-x | tests/xfs/018 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/xfs/018 b/tests/xfs/018 index 1ef51a2e61..73040edc92 100755 --- a/tests/xfs/018 +++ b/tests/xfs/018 @@ -71,6 +71,17 @@ create_test_file() done } +require_larp() +{ + touch $SCRATCH_MNT/a + + # Set attribute, being careful not to include the trailing newline + # in the attr value. + echo -n "attr_value" | ${ATTR_PROG} -s "attr_name" $SCRATCH_MNT/a 2>&1 | \ + grep 'Operation not supported' && \ + _notrun 'LARP not supported on this filesystem' +} + # real QA test starts here _supported_fs xfs @@ -112,6 +123,8 @@ _scratch_mount testdir=$SCRATCH_MNT/testdir mkdir $testdir +require_larp + # empty, inline create_test_file empty_file1 0 test_attr_replay empty_file1 "attr_name" $attr64 "s" "larp" |