From aec28e5f3581a9cf26453a678187f007894491bb Mon Sep 17 00:00:00 2001 From: Niclas Berglind Date: Tue, 23 Sep 2014 20:52:37 +0200 Subject: [PATCH] Fix to support /dev/disk/by-path when assembling an existing pool. Signed-off-by: Niclas Berglind --- src/Zpool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Zpool.php b/src/Zpool.php index 0ef1515..6c06e3d 100644 --- a/src/Zpool.php +++ b/src/Zpool.php @@ -753,7 +753,7 @@ class OMVModuleZFSZpool extends OMVModuleAbstract { $dev = null; } $type = $match[1]; - } else if (preg_match("/^\s*([\w\d-]+)\s+/", $line, $match)) { + } else if (preg_match("/^\s*([\w\d-a-z0-9\:\.\-]+)\s+/", $line, $match)) { if ($dev) $dev .= " $match[1]"; else -- 2.39.2