blob: c522e20784d577f54c81c5f77867545e9910880d (
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
|
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2013 Fusion IO. All Rights Reserved.
#
# FS QA Test No. btrfs/018
#
# Regression test to make sure we can move a subvol into another subvol
#
. ./common/preamble
_begin_fstest auto quick subvol
# Import common functions.
. ./common/filter
# real QA test starts here
_supported_fs btrfs
_require_scratch
_scratch_mkfs > /dev/null 2>&1
_scratch_mount
$BTRFS_UTIL_PROG subvolume create $SCRATCH_MNT/test1 >> $seqres.full 2>&1 \
|| _fail "couldn't create test1"
$BTRFS_UTIL_PROG subvolume create $SCRATCH_MNT/test2 >> $seqres.full 2>&1 \
|| _fail "couldn't create test1"
mv $SCRATCH_MNT/test1 $SCRATCH_MNT/test2 || _fail "Problem doing move"
echo "Silence is golden"
status=0 ; exit
|