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>
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
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"