generic: test idmapped mount circular mappings
[xfstests-dev.git] / tests / generic / 656
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2021 Christian Brauner.  All Rights Reserved.
4 #
5 # FS QA Test 656
6 #
7 # This is a test for the fix
8 # commit 968219708108 ("fs: handle circular mappings correctly")
9 # in Linux. It verifies that setattr for {g,u}id work correctly.
10 #
11 . ./common/preamble
12 _begin_fstest auto attr cap idmapped mount perms
13
14 # Import common functions.
15 . ./common/filter
16
17 # real QA test starts here
18
19 _supported_fs generic
20 _require_idmapped_mounts
21 _require_test
22 _require_user fsgqa
23 _require_user fsgqa2
24 _require_group fsgqa
25 _require_group fsgqa2
26
27 echo "Silence is golden"
28
29 $here/src/idmapped-mounts/idmapped-mounts --test-setattr-fix-968219708108 \
30         --device "$TEST_DEV" --mount "$TEST_DIR" --fstype "$FSTYP"
31
32 status=$?
33 exit