X-Git-Url: http://git.datanom.net/omvzfs.git/blobdiff_plain/a238c1a16ee1162aa28919ea82d20b83a69c03c1..c247043c2fcb7cab7ec212787244b40f604a3c19:/gui/rpc/zfs.inc diff --git a/gui/rpc/zfs.inc b/gui/rpc/zfs.inc index ead4ee5..2b12b18 100644 --- a/gui/rpc/zfs.inc +++ b/gui/rpc/zfs.inc @@ -130,7 +130,8 @@ class OMVRpcServiceZFS extends OMVRpcServiceAbstract { "path":{"type":"string"}, "name":{"type":"string"}, "size":{"type":"string"}, - "clonename":{"type":"string"} + "clonename":{"type":"string"}, + "mountpoint":{"type":"string"} } }'); switch ($params['type']) { @@ -141,6 +142,10 @@ class OMVRpcServiceZFS extends OMVRpcServiceAbstract { case "filesystem": $name = $params['path'] . "/" . $params['name']; $tmp = new OMVModuleZFSDataset($name); + if (strlen($params['mountpoint']) > 0) { + $properties = array("mountpoint"=>$params['mountpoint']); + $tmp->setProperties($properties); + } break; case "snapshot": $name = $params['path'] . "@" . $params['name'];