X-Git-Url: http://git.datanom.net/omvzfs.git/blobdiff_plain/3ed7a24053f0123d8d4e18ef313d83d23181de00..HEAD:/gui/rpc/zfs.inc diff --git a/gui/rpc/zfs.inc b/gui/rpc/zfs.inc index 9ab61a2..22011e4 100644 --- a/gui/rpc/zfs.inc +++ b/gui/rpc/zfs.inc @@ -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 {