]> git.datanom.net - omvzfs.git/blobdiff - src/Zpool.php
Removed some unused code.
[omvzfs.git] / src / Zpool.php
index 0ef151512ce2e6e73708cc9a232fc9f058889758..87e5f0cb4637e88badb4eab36aa32e394e896469 100644 (file)
@@ -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
This page took 0.041468 seconds and 5 git commands to generate.