xfstests: btrfs/047: check btrfs-convert with extent and non-extent source
PATCH 1/1 xfstests: btrfs/047: check btrfs-convert with extent and non-extent source
This is used to check the source which contains combination of Ext3 files in non-extent format and Ext4 extent-files. And validate the file md5sums before and after conversion.
btrfs/012: BTRFS_CONVERT_PROG,E2FSCK_PROG definitions reused from common/config
Signed-off-by Lakshmipathi.G <[email protected]>
--- common/config | 3 ++ tests/btrfs/012 | 3 -- tests/btrfs/047 | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/btrfs/047.out | 2 + tests/btrfs/group | 1 + 5 files changed, 128 insertions(+), 3 deletions(-) create mode 100755 tests/btrfs/047 create mode 100644 tests/btrfs/047.out
common/config +3 -0
@@ -240,11 +240,14 @@ case "$HOSTOS" in export DUMP_F2FS_PROG="`set_prog_path dump.f2fs`" export BTRFS_UTIL_PROG="`set_prog_path btrfs`" export BTRFS_SHOW_SUPER_PROG="`set_prog_path btrfs-show-super`" + export BTRFS_CONVERT_PROG="`set_prog_path btrfs-convert`" export XFS_FSR_PROG="`set_prog_path xfs_fsr`" export MKFS_NFS_PROG="false" export MKFS_CIFS_PROG="false" export MKFS_OVERLAY_PROG="false" export MKFS_REISER4_PROG="`set_prog_path mkfs.reiser4`" + export E2FSCK_PROG="`set_prog_path e2fsck`" + export TUNE2FS_PROG="`set_prog_path tune2fs`" ;; esac
tests/btrfs/012 +0 -3
@@ -54,9 +54,6 @@ _supported_fs btrfs _supported_os Linux _require_scratch_nocheck -BTRFS_CONVERT_PROG="`set_prog_path btrfs-convert`" -E2FSCK_PROG="`set_prog_path e2fsck`" - _require_command "$BTRFS_CONVERT_PROG" btrfs-convert _require_command "$MKFS_EXT4_PROG" mkfs.ext4 _require_command "$E2FSCK_PROG" e2fsck
tests/btrfs/047 new file +122 -0
122 lines not on this page · raw message
tests/btrfs/047.out new file +2 -0
@@ -0,0 +1,2 @@ +QA output created by 047 +Silence is golden
tests/btrfs/group +1 -0
@@ -49,6 +49,7 @@ 044 auto quick send 045 auto quick send 046 auto quick send +047 auto convert 048 auto quick 049 auto quick 050 auto quick send
Signature · 1 line
2.7.4