From d7b109d598674dcd7c654ca0fe06368d52eaeb3b Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Thu, 16 May 2013 21:36:39 +0800 Subject: [PATCH] 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 --- lustre/tests/test-framework.sh | 1 + 1 file changed, 1 insertion(+) 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 } -- 1.8.3.1