X-Git-Url: http://git.datanom.net/omvzfs.git/blobdiff_plain/7d6b772c83ecf6ff975233137172688da26568ab..9b2acb8e1c4e91bf2d855b1f96efa0464e212eb9:/src/Zpool.php diff --git a/src/Zpool.php b/src/Zpool.php index 0ef1515..87e5f0c 100644 --- a/src/Zpool.php +++ b/src/Zpool.php @@ -636,7 +636,7 @@ class OMVModuleZFSZpool extends OMVModuleAbstract { * @param string $attribute * @return string value */ - private function getAttribute($attribute) { + public function getAttribute($attribute) { $cmd = "zpool list -H -o $attribute {$this->name}"; OMVUtil::exec($cmd, $output, $result); if ($result) { @@ -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