X-Git-Url: http://git.datanom.net/omvzfs.git/blobdiff_plain/c02535923be4d7f22e8356d3895c0ec43fb56e98..7d6b772c83ecf6ff975233137172688da26568ab:/src/Zpool.php diff --git a/src/Zpool.php b/src/Zpool.php index 41fd052..0ef1515 100644 --- a/src/Zpool.php +++ b/src/Zpool.php @@ -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)