]> git.datanom.net - omvzfs.git/blobdiff - gui/rpc/zfs.inc
Minor change to clarify shared folder creation.
[omvzfs.git] / gui / rpc / zfs.inc
index 9ab61a2e7c8d60e844cd6bc2de8fa31374a7c971..22011e4ada941ab42311e14d103a9e052cff146a 100644 (file)
@@ -79,6 +79,9 @@ class OMVRpcServiceZFS extends OMVRpcServiceAbstract {
                }
 
                $disks = preg_split("/[,;]/", $params['devices']);
+               foreach ($disks as $disk) {
+                       OMVModuleZFSUtil::setGPTLabel($disk);
+               }
                //Use /dev/disk/by-path as suggested in ZoL FAQ.
                if ($params['diskpath']) {
                        try {
@@ -583,6 +586,9 @@ class OMVRpcServiceZFS extends OMVRpcServiceAbstract {
                        $opts .= "-f ";
                }
                $disks = preg_split("/[,;]/", $params['devices']);
+               foreach ($disks as $disk) {
+                       OMVModuleZFSUtil::setGPTLabel($disk);
+               }
                //Use /dev/disk/by-path as suggested in ZoL FAQ.
                if ($params['diskpath']) {
                        try {
This page took 0.044089 seconds and 5 git commands to generate.