From: Jian Yu Date: Thu, 16 May 2013 13:36:39 +0000 (+0800) Subject: LU-3264 tests: import ZFS pool which has file-based vdev X-Git-Tag: 2.4.51~88 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=d7b109d598674dcd7c654ca0fe06368d52eaeb3b LU-3264 tests: import ZFS pool which has file-based vdev For "zpool import" command, if the -d option is not specified, the command will only search for devices in "/dev". However, for the pool which was created with file-based virtual device, we need explicitly specify the search directory otherwise the import command will not find the device. Signed-off-by: Jian Yu Change-Id: I63ac141fdefcace99a1cf7c366e15f0067fa2a56 Reviewed-on: http://review.whamcloud.com/6358 Tested-by: Hudson Reviewed-by: Li Wei Tested-by: Maloo Reviewed-by: Alex Zhuravlev Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 231b6c3..f9ab7a6 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -916,6 +916,7 @@ import_zpool() { poolname=$(zpool_name $facet) if [[ -n "$poolname" ]]; then + opts+=" -d $(dirname $(facet_vdevice $facet))" do_facet $facet "$ZPOOL import -f $opts $poolname" fi }