2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
7 # Run the t_immutable test program for immutable/append-only files.
10 _begin_fstest auto quick ioctl metadata
12 timmutable=$here/src/t_immutable
14 # Override the default cleanup function.
18 echo "*** cleaning up"
19 $timmutable -r $SCRATCH_MNT/$seq
22 # Import common functions.
29 _require_test_program "t_immutable"
32 # real QA test starts here
33 _scratch_mkfs >/dev/null 2>&1 || _fail "mkfs failed"
36 echo "*** starting up"
37 $timmutable -c $SCRATCH_MNT/$seq >$tmp.out 2>&1
38 if grep -q -e 'Operation not supported' -e "Inappropriate ioctl" $tmp.out; then
40 _notrun "Setting immutable/append flag not supported"