2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2015 Fujitsu, Inc. All Rights Reserved.
5 # FS QA Test No. btrfs/090
7 # Check return value of "btrfs filesystem show" command executed on
9 # It should return 0 if nothing wrong happens.
11 # Regression in v3.18 btrfs-progs and fixed by the following patch:
13 # btrfs-progs: Fix wrong return value when executing 'fi show' on
17 _begin_fstest auto quick metadata
19 # Import common functions.
20 . ./common/filter.btrfs
22 # real QA test starts here
24 # Modify as appropriate.
27 _require_scratch_dev_pool
29 FIRST_POOL_DEV=`echo $SCRATCH_DEV_POOL | awk '{print $1}'`
30 TOTAL_DEVS=`echo $SCRATCH_DEV_POOL | wc -w`
32 _scratch_pool_mkfs >> $seqres.full 2>&1 || _fail "mkfs failed"
34 _run_btrfs_util_prog filesystem show $FIRST_POOL_DEV | \
35 _filter_btrfs_filesystem_show $TOTAL_DEVS
38 echo "Silence is golden"