]> git.datanom.net - omvzfs.git/blobdiff - src/Dataset.php
Minor fixes to Dataset and Zvol constructors.
[omvzfs.git] / src / Dataset.php
index 19dbc676a061e44fed819351f6cb33729d8ee0fe..f61baa1c24235755a82c11e73359c8aa58aefa0a 100644 (file)
@@ -68,12 +68,10 @@ class OMVModuleZFSDataset {
                        $ds_exists = false;
                }
                if ($ds_exists) {
-                       $cmd = "zfs list -r -o name -H -t snapshot " . $name . " 2>&1";
+                       $cmd = "zfs list -r -d 1 -o name -H -t snapshot " . $name . " 2>&1";
                        $this->exec($cmd, $out2, $res2);
                        foreach ($out2 as $line2) {
-                               if (preg_match('/^' . preg_quote($name, '/') . '\@.*$/', $line2)) {
                                        $this->snapshots[$line2] = new OMVModuleZFSSnapshot($line2);
-                               }
                        }
                } else {
                        $this->create();
This page took 0.028348 seconds and 5 git commands to generate.