]> git.datanom.net - omvzfs.git/blobdiff - src/Zpool.php
Support force create pools.
[omvzfs.git] / src / Zpool.php
index 41fd05267b89a1e4be1476b5bdaefc7c8ba1b307..0ef151512ce2e6e73708cc9a232fc9f058889758 100644 (file)
@@ -122,7 +122,7 @@ class OMVModuleZFSZpool extends OMVModuleAbstract {
      * @throws OMVModuleZFSException
         */
 
-       public function __construct($vdev) {
+       public function __construct($vdev, $opts = "") {
                $create_pool = true;
 
                if (is_array($vdev)) {
@@ -144,7 +144,7 @@ class OMVModuleZFSZpool extends OMVModuleAbstract {
                $this->cache = null;
                $this->features = array();
                if ($create_pool) {
-                       $cmd = "zpool create $name $cmd 2>&1";
+                       $cmd = "zpool create $opts$name $cmd 2>&1";
 
                        OMVUtil::exec($cmd, $output, $result);
                        if ($result)
This page took 0.030056 seconds and 5 git commands to generate.