Skip to content

Commit 13b775d

Browse files
authored
Merge pull request #633 from jschoiRR/mold-main#2025
[Mold Agent] 데이터 볼륨 가져오기, 인스턴스 가져오기시 지원되는 볼륨 항목 추가(SharedMountPoint)
2 parents b9d8e55 + 3577c97 commit 13b775d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

api/src/main/java/org/apache/cloudstack/storage/volume/VolumeImportUnmanageService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public interface VolumeImportUnmanageService extends PluggableService {
3535
Arrays.asList(Hypervisor.HypervisorType.KVM, Hypervisor.HypervisorType.VMware);
3636

3737
List<Storage.StoragePoolType> SUPPORTED_STORAGE_POOL_TYPES_FOR_KVM = Arrays.asList(Storage.StoragePoolType.NetworkFilesystem,
38-
Storage.StoragePoolType.Filesystem, Storage.StoragePoolType.RBD);
38+
Storage.StoragePoolType.Filesystem, Storage.StoragePoolType.RBD, Storage.StoragePoolType.SharedMountPoint);
3939

4040
ListResponse<VolumeForImportResponse> listVolumesForImport(ListVolumesForImportCmd cmd);
4141

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtCheckVolumeCommandWrapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public Answer execute(final CheckVolumeCommand command, final LibvirtComputingRe
5151

5252
try {
5353
if (storageFilerTO.getType() == Storage.StoragePoolType.Filesystem ||
54-
storageFilerTO.getType() == Storage.StoragePoolType.NetworkFilesystem) {
54+
storageFilerTO.getType() == Storage.StoragePoolType.NetworkFilesystem ||
55+
storageFilerTO.getType() == Storage.StoragePoolType.SharedMountPoint) {
5556
final KVMPhysicalDisk vol = pool.getPhysicalDisk(srcFile);
5657
final String path = vol.getPath();
5758
long size = getVirtualSizeFromFile(path);

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtCopyRemoteVolumeCommandWrapper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public Answer execute(final CopyRemoteVolumeCommand command, final LibvirtComput
5656

5757
try {
5858
if (storageFilerTO.getType() == Storage.StoragePoolType.Filesystem ||
59-
storageFilerTO.getType() == Storage.StoragePoolType.NetworkFilesystem) {
59+
storageFilerTO.getType() == Storage.StoragePoolType.NetworkFilesystem||
60+
storageFilerTO.getType() == Storage.StoragePoolType.SharedMountPoint) {
6061
String filename = libvirtComputingResource.copyVolume(srcIp, username, password, dstPath, srcFile, tmpPath, timeoutInSecs);
6162
logger.debug("Volume " + srcFile + " copy successful, copied to file: " + filename);
6263
final KVMPhysicalDisk vol = pool.getPhysicalDisk(filename);

0 commit comments

Comments
 (0)