]> git.datanom.net - omvzfs.git/blobdiff - gui/rpc/zfs.inc
Add option to set mountpoint when creating pool.
[omvzfs.git] / gui / rpc / zfs.inc
index 3bc3ec117d4fca266e5b056add8f5eb38dfc8aff..16b5a133183afa56dc2a56a2ac8256a6be0d5bdb 100644 (file)
@@ -59,6 +59,10 @@ class OMVRpcServiceZFS extends OMVRpcServiceAbstract {
                if ($params['force']) {
                        $opts .= "-f ";
                }
+               if (strlen($params['mountpoint']) > 0) {
+                       $opts .= "-m " . $params['mountpoint'] . " ";
+               }
+
                $disks = preg_split("/[,;]/", $params['devices']);
                $vdev = new OMVModuleZFSVdev($params['name'], $pooltype, $disks);
                $pool = new OMVModuleZFSZpool($vdev, $opts);
This page took 0.047697 seconds and 5 git commands to generate.