|
88 | 88 | public class XenServerStorageProcessor implements StorageProcessor { |
89 | 89 | private static final Logger s_logger = Logger.getLogger(XenServerStorageProcessor.class); |
90 | 90 | protected CitrixResourceBase hypervisorResource; |
91 | | - private String BaseMountPointOnHost = "/var/run/cloud_mount"; |
| 91 | + protected String BaseMountPointOnHost = "/var/run/cloud_mount"; |
92 | 92 |
|
93 | 93 | public XenServerStorageProcessor(CitrixResourceBase resource) { |
94 | 94 | hypervisorResource = resource; |
@@ -446,6 +446,7 @@ public Answer createSnapshot(CreateObjectCommand cmd) { |
446 | 446 | return new CreateObjectAnswer(details); |
447 | 447 | } |
448 | 448 |
|
| 449 | + |
449 | 450 | @Override |
450 | 451 | public Answer deleteVolume(DeleteCommand cmd) { |
451 | 452 | DataTO volume = cmd.getData(); |
@@ -767,7 +768,7 @@ protected Answer execute(AttachPrimaryDataStoreCmd cmd) { |
767 | 768 | } |
768 | 769 | } |
769 | 770 |
|
770 | | - private boolean IsISCSI(String type) { |
| 771 | + protected boolean IsISCSI(String type) { |
771 | 772 | return SRType.LVMOHBA.equals(type) || SRType.LVMOISCSI.equals(type) || SRType.LVM.equals(type) ; |
772 | 773 | } |
773 | 774 |
|
@@ -1069,7 +1070,7 @@ public String swiftBackupSnapshot(Connection conn, SwiftTO swift, String srUuid, |
1069 | 1070 | return lfilename; |
1070 | 1071 | } |
1071 | 1072 |
|
1072 | | - private String backupSnapshotToS3(final Connection connection, final S3TO s3, final String srUuid, final String folder, final String snapshotUuid, |
| 1073 | + protected String backupSnapshotToS3(final Connection connection, final S3TO s3, final String srUuid, final String folder, final String snapshotUuid, |
1073 | 1074 | final Boolean iSCSIFlag, final int wait) { |
1074 | 1075 |
|
1075 | 1076 | final String filename = iSCSIFlag ? "VHD-" + snapshotUuid |
@@ -1182,7 +1183,7 @@ protected String backupSnapshot(Connection conn, String primaryStorageSRUuid, St |
1182 | 1183 | } |
1183 | 1184 | } |
1184 | 1185 |
|
1185 | | - private boolean destroySnapshotOnPrimaryStorageExceptThis(Connection conn, String volumeUuid, String avoidSnapshotUuid){ |
| 1186 | + protected boolean destroySnapshotOnPrimaryStorageExceptThis(Connection conn, String volumeUuid, String avoidSnapshotUuid){ |
1186 | 1187 | try { |
1187 | 1188 | VDI volume = getVDIbyUuid(conn, volumeUuid); |
1188 | 1189 | if (volume == null) { |
|
0 commit comments