2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2016, Oracle and/or its affiliates. All Rights Reserved.
7 # Check that attr_list_by_handle copies the cursor back to userspace.
10 _begin_fstest auto quick ioctl
12 # Override the default cleanup function.
16 rm -rf "$tmp".* $TEST_DIR/fsmap $TEST_DIR/testout
19 # Import common functions.
24 # real QA test starts here
26 _require_populate_commands
27 _require_test_program "attr-list-by-handle-cursor-test"
31 echo "Format and mount"
32 _scratch_mkfs > "$seqres.full" 2>&1
35 echo "Stuff file with xattrs"
36 mkdir $SCRATCH_MNT/foo
37 __populate_create_attr $SCRATCH_MNT/foo 100
39 echo "Run test program"
40 $here/src/attr-list-by-handle-cursor-test $SCRATCH_MNT/foo