blob: c580b1fada51981d34ef34a0572496dd322727d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2021 Christian Brauner. All Rights Reserved.
#
# FS QA Test 245
#
# Test that idmapped mounts behave correctly with btrfs specific features such
# as subvolume and snapshot creation and deletion.
#
. ./common/preamble
_begin_fstest auto quick idmapped subvol
. ./common/filter
_supported_fs btrfs
_require_idmapped_mounts
_require_test
_require_scratch
_scratch_mkfs >> $seqres.full
_scratch_mount "-o user_subvol_rm_allowed" >> $seqres.full
echo "Silence is golden"
$here/src/vfs/vfstest --test-btrfs --device "$TEST_DEV" \
--mountpoint "$TEST_DIR" --scratch-device "$SCRATCH_DEV" \
--scratch-mountpoint "$SCRATCH_MNT" --fstype "$FSTYP"
status=$?
exit
|