X-Git-Url: http://git.datanom.net/omvzfs.git/blobdiff_plain/cf4e471d86e8b05678e56f58a44212a43a6f9c82..4163f889aa50c1ee7f66ff9392ba600048221edb:/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)