mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-07 01:31:17 +00:00
btrfs-progs: tests: add protection against running out of test suite
Executing the script inside the directories as './test.sh' is not supposed to work but could happen accidentally. With an exit after attempting to source the we can fix that. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
0ee736b1f0
commit
f6bbe06c08
tests
cli-tests
001-btrfs
002-balance-full-no-filters
003-fi-resize-args
004-send-parent-multi-subvol
005-qgroup-show
006-qgroup-show-sync
007-check-force
008-subvolume-get-set-default
009-btrfstune
010-subvol-show-qgroup
011-defrag-recursion
012-defrag-recursion
013-subvolume-delete-by-id
014-multiple-profiles-warning
015-defrag-compress
016-btrfs-fi-usage
017-fi-show-missing
convert-tests
001-ext2-basic
003-ext4-basic
004-ext2-backup-superblock-ranges
005-delete-all-rollback
006-large-hole-extent
007-unsupported-block-sizes
008-readonly-image
009-common-inode-flags
010-reiserfs-basic
011-reiserfs-delete-all-rollback
012-reiserfs-large-hole-extent
013-reiserfs-common-inode-flags
014-reiserfs-tail-handling
015-no-rollback-after-balance
016-invalid-large-inline-extent
017-fs-near-full
018-fs-size-overflow
019-ext4-copy-timestamps
020-refuse-needs-recovery
021-uuid-fsid
022-reiserfs-parent-ref
fuzz-tests
001-simple-check-unmounted
002-simple-image
003-multi-check-unmounted
004-simple-dump-tree
005-simple-dump-super
006-simple-tree-stats
007-simple-super-recover
008-simple-chunk-recover
009-simple-zero-log
misc-tests
001-btrfstune-features
002-uuid-rewrite
003-zero-log
004-shrink-fs
005-convert-progress-thread-crash
006-image-on-missing-device
007-subvolume-sync
008-leaf-crossing-stripes
009-subvolume-sync-must-wait
010-convert-delete-ext2-subvol
011-delete-missing-device
012-find-root-no-result
013-subvolume-sync-crash
014-filesystem-label
015-dump-super-garbage
016-send-clone-src
017-recv-stream-malformatted
018-recv-end-of-stream
019-receive-clones-on-mounted-subvol
020-fix-superblock-corruption
021-image-multi-devices
022-filesystem-du-on-empty-subvol
023-device-usage-with-missing-device
024-inspect-internal-rootid
025-zstd-compression
026-image-non-printable-chars
027-subvol-list-deleted-toplevel
028-superblock-recover
029-send-p-different-mountpoints
030-missing-device-image
031-qgroup-parent-child-relation
032-bad-item-ptr
033-filename-length-limit
034-metadata-uuid
035-receive-common-mount-point-prefix
036-receive-dump-invalid-stream
037-fi-show-on-new-file
038-backup-root-corruption
039-receive-clone-from-current-subvolume
040-subvolume-delete-default
041-subvolume-delete-during-send
042-inspect-internal-logical-resolve
043-subvolume-set-default-toplevel
045-receive-check-mount-type
046-seed-multi-mount
047-raid5-convert
048-image-restore-mount
049-btrfstune-transid-mismatch
050-receive-prop-ro-to-rw
051-warning-rw-subvol-received-uuid
052-seed-dirty-log
053-receive-write-encoded
054-receive-dump-newlines
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# test commands of btrfs
|
# test commands of btrfs
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# coverage of balance --full-balance
|
# coverage of balance --full-balance
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# test parsing of various resize arguments
|
# test parsing of various resize arguments
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# minimal test for the following syntax: btrfs send -p parent subvol1 subvol2
|
# minimal test for the following syntax: btrfs send -p parent subvol1 subvol2
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# qgroup show behaviour when quotas are not enabled
|
# qgroup show behaviour when quotas are not enabled
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# simple test of qgroup show --sync option
|
# simple test of qgroup show --sync option
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# test 'btrfs check --force' on a mounted filesystem
|
# test 'btrfs check --force' on a mounted filesystem
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# test for "subvolume get-default/set-default"
|
# test for "subvolume get-default/set-default"
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# test all command line options of btrfstune
|
# test all command line options of btrfstune
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfstune
|
check_prereq btrfstune
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# simple test for 'subvol show' output
|
# simple test for 'subvol show' output
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# mountpoint and subvolume boundary, ie. only the first file should
|
# mountpoint and subvolume boundary, ie. only the first file should
|
||||||
# appear in the list of processed files
|
# appear in the list of processed files
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# check how deep does recursive 'fi du' go, currently it has to stop at
|
# check how deep does recursive 'fi du' go, currently it has to stop at
|
||||||
# mountpoint and can continue to subvolumes
|
# mountpoint and can continue to subvolumes
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Test deletion of subvolume specified by id
|
# Test deletion of subvolume specified by id
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# Tested for separate data/metadata and mixed
|
# Tested for separate data/metadata and mixed
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Test parsing of option 'defrag -c'
|
# Test parsing of option 'defrag -c'
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
setup_root_helper
|
setup_root_helper
|
||||||
prepare_test_dev
|
prepare_test_dev
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Tests 'btrfs fi usage' reports correct space/ratio with various RAID profiles
|
# Tests 'btrfs fi usage' reports correct space/ratio with various RAID profiles
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Test that if a device is missing for a mounted filesystem, btrfs fi show will
|
# Test that if a device is missing for a mounted filesystem, btrfs fi show will
|
||||||
# show which device exactly is missing.
|
# show which device exactly is missing.
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_global_prereq mke2fs
|
check_global_prereq mke2fs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_global_prereq mke2fs
|
check_global_prereq mke2fs
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
# 4) Overlap file extents
|
# 4) Overlap file extents
|
||||||
# 5) Unable to rollback
|
# 5) Unable to rollback
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
# create a base image, convert to btrfs, remove all files, rollback the ext4 image
|
# create a base image, convert to btrfs, remove all files, rollback the ext4 image
|
||||||
# note: ext4 only
|
# note: ext4 only
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_global_prereq mke2fs
|
check_global_prereq mke2fs
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
# Fast pinpoint regression test. No options combination nor checksum
|
# Fast pinpoint regression test. No options combination nor checksum
|
||||||
# verification
|
# verification
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_global_prereq mke2fs
|
check_global_prereq mke2fs
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Check if block sizes smaller than 4k expectedly fail to convert
|
# Check if block sizes smaller than 4k expectedly fail to convert
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_global_prereq mke2fs
|
check_global_prereq mke2fs
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Check if the converted ext2 image is readonly
|
# Check if the converted ext2 image is readonly
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_global_prereq mke2fs
|
check_global_prereq mke2fs
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Check if btrfs-convert can copy common inode flags like SYNC/IMMUTABLE
|
# Check if btrfs-convert can copy common inode flags like SYNC/IMMUTABLE
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_global_prereq mke2fs
|
check_global_prereq mke2fs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
if ! check_kernel_support_reiserfs >/dev/null; then
|
if ! check_kernel_support_reiserfs >/dev/null; then
|
||||||
_not_run "no reiserfs support"
|
_not_run "no reiserfs support"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# create a base image, convert to btrfs, remove all files, rollback the reiserfs image
|
# create a base image, convert to btrfs, remove all files, rollback the reiserfs image
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
if ! check_kernel_support_reiserfs >/dev/null; then
|
if ! check_kernel_support_reiserfs >/dev/null; then
|
||||||
_not_run "no reiserfs support"
|
_not_run "no reiserfs support"
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
# Fast pinpoint regression test. No options combination nor checksum
|
# Fast pinpoint regression test. No options combination nor checksum
|
||||||
# verification
|
# verification
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
if ! check_kernel_support_reiserfs >/dev/null; then
|
if ! check_kernel_support_reiserfs >/dev/null; then
|
||||||
_not_run "no reiserfs support"
|
_not_run "no reiserfs support"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Check if btrfs-convert can copy common inode flags like SYNC/IMMUTABLE
|
# Check if btrfs-convert can copy common inode flags like SYNC/IMMUTABLE
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
if ! check_kernel_support_reiserfs >/dev/null; then
|
if ! check_kernel_support_reiserfs >/dev/null; then
|
||||||
_not_run "no reiserfs support"
|
_not_run "no reiserfs support"
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
# We use separate inputs for tails and real blocks so we can determine
|
# We use separate inputs for tails and real blocks so we can determine
|
||||||
# if there was a failure in copying either.
|
# if there was a failure in copying either.
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
if ! check_kernel_support_reiserfs >/dev/null; then
|
if ! check_kernel_support_reiserfs >/dev/null; then
|
||||||
_not_run "no reiserfs support"
|
_not_run "no reiserfs support"
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
# Check if btrfs-convert refuses to rollback the filesystem, and leave the fs
|
# Check if btrfs-convert refuses to rollback the filesystem, and leave the fs
|
||||||
# and the convert image untouched
|
# and the convert image untouched
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_global_prereq mke2fs
|
check_global_prereq mke2fs
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
# Check if btrfs-convert refuses to rollback the filesystem, and leave the fs
|
# Check if btrfs-convert refuses to rollback the filesystem, and leave the fs
|
||||||
# and the convert image untouched
|
# and the convert image untouched
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_global_prereq mke2fs
|
check_global_prereq mke2fs
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
# Check if btrfs-convert creates filesystem with device extents beyond the
|
# Check if btrfs-convert creates filesystem with device extents beyond the
|
||||||
# device boundary
|
# device boundary
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_global_prereq mke2fs
|
check_global_prereq mke2fs
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
# That fs size could trigger a multiply overflow and screw up free space
|
# That fs size could trigger a multiply overflow and screw up free space
|
||||||
# calculation
|
# calculation
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_global_prereq mke2fs
|
check_global_prereq mke2fs
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Check if [acm]time values are copied from ext4 with full precision
|
# Check if [acm]time values are copied from ext4 with full precision
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_global_prereq mke2fs
|
check_global_prereq mke2fs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Crafted image with needs_recovery incompat bit feature set, convert must
|
# Crafted image with needs_recovery incompat bit feature set, convert must
|
||||||
# refuse to convert such image
|
# refuse to convert such image
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Verify --uuid option on ext2
|
# Verify --uuid option on ext2
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_global_prereq mke2fs
|
check_global_prereq mke2fs
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Test that only toplevel directory self-reference is created
|
# Test that only toplevel directory self-reference is created
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
source "$TEST_TOP/common.convert"
|
source "$TEST_TOP/common.convert" || exit
|
||||||
|
|
||||||
setup_root_helper
|
setup_root_helper
|
||||||
prepare_test_dev
|
prepare_test_dev
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# iterate over all fuzzed images and run 'btrfs check'
|
# iterate over all fuzzed images and run 'btrfs check'
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# iterate over all fuzzed images and run 'btrfs-image'
|
# iterate over all fuzzed images and run 'btrfs-image'
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs-image
|
check_prereq btrfs-image
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# iterate over all fuzzed images and run 'btrfs check', try various options to
|
# iterate over all fuzzed images and run 'btrfs check', try various options to
|
||||||
# get more code coverage
|
# get more code coverage
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# test btrfstune options that enable filesystem features
|
# test btrfstune options that enable filesystem features
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfstune
|
check_prereq btrfstune
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# test btrfstune uuid rewriting options
|
# test btrfstune uuid rewriting options
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfstune
|
check_prereq btrfstune
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# test zero-log
|
# test zero-log
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# are able to resize (shrink) it to that size.
|
# are able to resize (shrink) it to that size.
|
||||||
#
|
#
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# test convert-thread-conflict
|
# test convert-thread-conflict
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# - btrfs-image must not loop indefinitely
|
# - btrfs-image must not loop indefinitely
|
||||||
# - btrfs-image will expectedly fail to produce the dump
|
# - btrfs-image will expectedly fail to produce the dump
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs-image
|
check_prereq btrfs-image
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# - btrfs subvolume must not loop indefinitely
|
# - btrfs subvolume must not loop indefinitely
|
||||||
# - btrfs subvolume return 0 in normal case
|
# - btrfs subvolume return 0 in normal case
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# test if btrfs-convert creates a filesystem without leaf crossing stripes
|
# test if btrfs-convert creates a filesystem without leaf crossing stripes
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Verify that subvolume sync waits until the subvolume is cleaned
|
# Verify that subvolume sync waits until the subvolume is cleaned
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# verify that convert rollback finds the ext2_subvolume intact and fails if it
|
# verify that convert rollback finds the ext2_subvolume intact and fails if it
|
||||||
# was partially deleted
|
# was partially deleted
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs-convert
|
check_prereq btrfs-convert
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# make sure that 'missing' is accepted for device deletion
|
# make sure that 'missing' is accepted for device deletion
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# recent fs or balanced fs, whose metadata chunk is the first chunk
|
# recent fs or balanced fs, whose metadata chunk is the first chunk
|
||||||
# and the only metadata chunk
|
# and the only metadata chunk
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs-find-root
|
check_prereq btrfs-find-root
|
||||||
check_prereq btrfs-image
|
check_prereq btrfs-image
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Verify that subvolume sync waits until the subvolume is cleaned and does not
|
# Verify that subvolume sync waits until the subvolume is cleaned and does not
|
||||||
# crash at the end
|
# crash at the end
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# test label settings
|
# test label settings
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# let dump-super dump random data, must not crash
|
# let dump-super dump random data, must not crash
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# test for sending stream size of clone-src option, compare against a send
|
# test for sending stream size of clone-src option, compare against a send
|
||||||
# stream generated by buggy version
|
# stream generated by buggy version
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# test receiving stream that's not valid, simple cases
|
# test receiving stream that's not valid, simple cases
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# end of stream conditions: test that no instructions in a stream are still
|
# end of stream conditions: test that no instructions in a stream are still
|
||||||
# received, at least the header must be present
|
# received, at least the header must be present
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
# have an entry with the same name that corresponds to different inodes in each
|
# have an entry with the same name that corresponds to different inodes in each
|
||||||
# snapshot.
|
# snapshot.
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Corrupt primary superblock and restore it using backup superblock.
|
# Corrupt primary superblock and restore it using backup superblock.
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs-select-super
|
check_prereq btrfs-select-super
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Test btrfs-image with multiple devices filesystem and verify that restoring
|
# Test btrfs-image with multiple devices filesystem and verify that restoring
|
||||||
# the created image works against a single device.
|
# the created image works against a single device.
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs-image
|
check_prereq btrfs-image
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# btrfs fi du should handle empty subvolumes (with ino == 2)
|
# btrfs fi du should handle empty subvolumes (with ino == 2)
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# check if 'device slack' is reported as zero when a device is missing
|
# check if 'device slack' is reported as zero when a device is missing
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs-image
|
check_prereq btrfs-image
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# test commands of inspect-internal rootid
|
# test commands of inspect-internal rootid
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Test zstd compression support on a prebuilt btrfs image
|
# Test zstd compression support on a prebuilt btrfs image
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
check_global_prereq md5sum
|
check_global_prereq md5sum
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# check that sanitized names with matching crc do not contain unprintable
|
# check that sanitized names with matching crc do not contain unprintable
|
||||||
# characters, namely 0x7f
|
# characters, namely 0x7f
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# check that the toplevel subvolume is not listed as regular or deleted
|
# check that the toplevel subvolume is not listed as regular or deleted
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Test that any superblock is correctly detected and fixed by btrfs rescue
|
# Test that any superblock is correctly detected and fixed by btrfs rescue
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# test that send -p does not corrupt paths when send is using 2 different mount
|
# test that send -p does not corrupt paths when send is using 2 different mount
|
||||||
# points
|
# points
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# At least for RAID1, btrfs-image should be able to handle one missing device
|
# At least for RAID1, btrfs-image should be able to handle one missing device
|
||||||
# without any problem
|
# without any problem
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs-image
|
check_prereq btrfs-image
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Test that btrfs 'qgroup show' outputs the correct parent-child qgroup relation
|
# Test that btrfs 'qgroup show' outputs the correct parent-child qgroup relation
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# tree leaf
|
# tree leaf
|
||||||
# Issue: #128
|
# Issue: #128
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# test file name length limits for subvolumes
|
# test file name length limits for subvolumes
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Test that receive determines the correct mount point path when there is
|
# Test that receive determines the correct mount point path when there is
|
||||||
# another mount point that matches the destination's path as a prefix.
|
# another mount point that matches the destination's path as a prefix.
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
# fix reverted in v4.20.2 due to reported breakage, the bug fixed by
|
# fix reverted in v4.20.2 due to reported breakage, the bug fixed by
|
||||||
# "Btrfs-progs: fix mount point detection due to partial prefix match" is still
|
# "Btrfs-progs: fix mount point detection due to partial prefix match" is still
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# The --dump option should follow the --max-errors and not loop indefinetelly
|
# The --dump option should follow the --max-errors and not loop indefinetelly
|
||||||
# by default
|
# by default
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# test for 'filesystem show' on fresh local file
|
# test for 'filesystem show' on fresh local file
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Test that a corrupted filesystem will correctly handle writing of backup root
|
# Test that a corrupted filesystem will correctly handle writing of backup root
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# receiving, not the existing subvolume). This is a regression test for
|
# receiving, not the existing subvolume). This is a regression test for
|
||||||
# "btrfs-progs: receive: don't lookup clone root for received subvolume".
|
# "btrfs-progs: receive: don't lookup clone root for received subvolume".
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Detect if a default subvolume is being deleted
|
# Detect if a default subvolume is being deleted
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Detect if subvolume deletion fails when it's part of send
|
# Detect if subvolume deletion fails when it's part of send
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# subvolume tree scenarios. This used to fail when a child subvolume was
|
# subvolume tree scenarios. This used to fail when a child subvolume was
|
||||||
# mounted without the parent subvolume being accessible.
|
# mounted without the parent subvolume being accessible.
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
setup_root_helper
|
setup_root_helper
|
||||||
prepare_test_dev
|
prepare_test_dev
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Verify that default subvolume specified as 0 will be resolved as the toplevel
|
# Verify that default subvolume specified as 0 will be resolved as the toplevel
|
||||||
# one and not the containing subvolume of the given path
|
# one and not the containing subvolume of the given path
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
setup_root_helper
|
setup_root_helper
|
||||||
prepare_test_dev
|
prepare_test_dev
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# This is a regression test for
|
# This is a regression test for
|
||||||
# "btrfs-progs: receive: fix btrfs_mount_root substring bug"
|
# "btrfs-progs: receive: fix btrfs_mount_root substring bug"
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Verify that a seeding device can be mounted several times
|
# Verify that a seeding device can be mounted several times
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs-image
|
check_prereq btrfs-image
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Verify that raid56 warning is printed before balance conversion when the
|
# Verify that raid56 warning is printed before balance conversion when the
|
||||||
# target profile is raid5 or raid6, but not other profiles
|
# target profile is raid5 or raid6, but not other profiles
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Verify that the restored image of an empty btrfs filesystem can still be
|
# Verify that the restored image of an empty btrfs filesystem can still be
|
||||||
# mounted
|
# mounted
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs-image
|
check_prereq btrfs-image
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Verify that btrfstune would reject fs with transid mismatch problems
|
# Verify that btrfstune would reject fs with transid mismatch problems
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfs-image
|
check_prereq btrfs-image
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Prevent changing subvolume ro->rw status with received_uuid set, unless forced
|
# Prevent changing subvolume ro->rw status with received_uuid set, unless forced
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
setup_root_helper
|
setup_root_helper
|
||||||
prepare_test_dev
|
prepare_test_dev
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Look for warning about read-write subvolume with received_uuid set, on a crafted
|
# Look for warning about read-write subvolume with received_uuid set, on a crafted
|
||||||
# image
|
# image
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
setup_root_helper
|
setup_root_helper
|
||||||
prepare_test_dev
|
prepare_test_dev
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Make sure btrfstune will not set seed flag when the fs has dirty log
|
# Make sure btrfstune will not set seed flag when the fs has dirty log
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq btrfstune
|
check_prereq btrfstune
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# test that we can send and receive encoded writes for three modes of
|
# test that we can send and receive encoded writes for three modes of
|
||||||
# transparent compression: zlib, lzo, and zstd.
|
# transparent compression: zlib, lzo, and zstd.
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
check_prereq mkfs.btrfs
|
check_prereq mkfs.btrfs
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Verify that receive --dump escapes paths for rename, symlink and hardlink
|
# Verify that receive --dump escapes paths for rename, symlink and hardlink
|
||||||
# when it's the "dest=" value
|
# when it's the "dest=" value
|
||||||
|
|
||||||
source "$TEST_TOP/common"
|
source "$TEST_TOP/common" || exit
|
||||||
|
|
||||||
setup_root_helper
|
setup_root_helper
|
||||||
prepare_test_dev
|
prepare_test_dev
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user