mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
Update migration tests
Due to the instability of the migration tests, the test will skip. The migration tests focus on migrating test file from fs to ZFS fs. We can create zpool and ext2 directly by loop device, rather than by set_partition Reviewed-by: Sydney Vanda <sydney.m.vanda@intel.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: legend-hua <liu.hua130@zte.com.cn> Closes #5315
This commit is contained in:
parent
f26eb42862
commit
9f38f81ca3
@ -34,10 +34,6 @@
|
||||
|
||||
verify_runnable "global"
|
||||
|
||||
if ! $(is_physical_device $ZFS_DISK) ; then
|
||||
log_unsupported "Only partitionable physical disks can be used"
|
||||
fi
|
||||
|
||||
case $DISK_COUNT in
|
||||
0)
|
||||
log_untested "Need at least 1 disk device for test"
|
||||
@ -50,10 +46,7 @@ case $DISK_COUNT in
|
||||
;;
|
||||
esac
|
||||
|
||||
set_partition ${ZFSSIDE_DISK##*s} "" $FS_SIZE $ZFS_DISK
|
||||
set_partition ${NONZFSSIDE_DISK##*s} "" $FS_SIZE $NONZFS_DISK
|
||||
|
||||
create_pool $TESTPOOL "$ZFSSIDE_DISK"
|
||||
create_pool $TESTPOOL "$ZFS_DISK"
|
||||
|
||||
$RM -rf $TESTDIR || log_unresolved Could not remove $TESTDIR
|
||||
$MKDIR -p $TESTDIR || log_unresolved Could not create $TESTDIR
|
||||
@ -64,10 +57,10 @@ log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS
|
||||
$RM -rf $NONZFS_TESTDIR || log_unresolved Could not remove $NONZFS_TESTDIR
|
||||
$MKDIR -p $NONZFS_TESTDIR || log_unresolved Could not create $NONZFS_TESTDIR
|
||||
|
||||
$ECHO "y" | $NEWFS -v ${DEV_DSKDIR}/$NONZFSSIDE_DISK
|
||||
$ECHO "y" | $NEWFS -v ${DEV_DSKDIR}/$NONZFS_DISK
|
||||
(( $? != 0 )) &&
|
||||
log_untested "Unable to setup a UFS file system"
|
||||
|
||||
log_must $MOUNT ${DEV_DSKDIR}/$NONZFSSIDE_DISK $NONZFS_TESTDIR
|
||||
log_must $MOUNT ${DEV_DSKDIR}/$NONZFS_DISK $NONZFS_TESTDIR
|
||||
|
||||
log_pass
|
||||
|
Loading…
Reference in New Issue
Block a user