File: test.sh

package info (click to toggle)
btrfs-progs 6.17.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,612 kB
  • sloc: ansic: 127,282; sh: 7,915; python: 1,384; makefile: 900; asm: 296
file content (20 lines) | stat: -rwxr-xr-x 584 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Make sure btrfs-convert can create a fs with bgt feature.

source "$TEST_TOP/common" || exit
source "$TEST_TOP/common.convert" || exit

setup_root_helper
prepare_test_dev

check_global_prereq mkfs.ext4
check_prereq btrfs-convert
check_prereq btrfs

convert_test_prep_fs ext4 mke2fs -t ext4 -b 4096
run_check_umount_test_dev
convert_test_do_convert bgt 16384

# Manually check the super block to make sure it has BGT flag.
run_check_stdout "$TOP/btrfs" inspect-internal dump-super "$TEST_DEV" |\
	grep -q "BLOCK_GROUP_TREE" || _fail "No block-group-tree feature enabled"