-
Notifications
You must be signed in to change notification settings - Fork 1.3k
removed the use of SharedMountPoint storage type for the StorPool plugin #6552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2848,7 +2848,8 @@ public int compare(final DiskTO arg0, final DiskTO arg1) { | |
| dataStoreUrl = "nfs://" + psHost + File.separator + psPath; | ||
| physicalDisk = getPhysicalDiskFromNfsStore(dataStoreUrl, data); | ||
| } else if (primaryDataStoreTO.getPoolType().equals(StoragePoolType.SharedMountPoint) || | ||
| primaryDataStoreTO.getPoolType().equals(StoragePoolType.Filesystem)) { | ||
| primaryDataStoreTO.getPoolType().equals(StoragePoolType.Filesystem) || | ||
| primaryDataStoreTO.getPoolType().equals(StoragePoolType.StorPool)) { | ||
| physicalDisk = getPhysicalDiskPrimaryStore(primaryDataStoreTO, data); | ||
| } | ||
| } | ||
|
|
@@ -2868,7 +2869,8 @@ public int compare(final DiskTO arg0, final DiskTO arg1) { | |
| && (pool.getType() == StoragePoolType.NetworkFilesystem | ||
| || pool.getType() == StoragePoolType.SharedMountPoint | ||
| || pool.getType() == StoragePoolType.Filesystem | ||
| || pool.getType() == StoragePoolType.Gluster)) { | ||
| || pool.getType() == StoragePoolType.Gluster | ||
| || pool.getType() == StoragePoolType.StorPool)) { | ||
|
Comment on lines
2869
to
+2873
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could create a |
||
| setBackingFileFormat(physicalDisk.getPath()); | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -233,7 +233,6 @@ public void createAsync(DataStore dataStore, DataObject data, AsyncCompletionCal | |
|
|
||
| VolumeVO volume = volumeDao.findById(vinfo.getId()); | ||
| volume.setPoolId(dataStore.getId()); | ||
| volume.setPoolType(StoragePoolType.SharedMountPoint); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think, you can keep pool type as StoragePoolType.StorPool |
||
| volume.setPath(path); | ||
| volumeDao.update(volume.getId(), volume); | ||
|
|
||
|
|
@@ -716,7 +715,7 @@ public void copyAsync(DataObject srcData, DataObject dstData, AsyncCompletionCal | |
| final String name = StorPoolStorageAdaptor.getVolumeNameFromPath(srcTO.getPath(), true); | ||
| StorPoolUtil.spLog("StorpoolPrimaryDataStoreDriverImpl.copyAsnc DST tmpSnapName=%s ,srcUUID=%s", name, srcTO.getUuid()); | ||
|
|
||
| if (checkStoragePool != null && checkStoragePool.getPoolType().equals(StoragePoolType.SharedMountPoint)) { | ||
| if (checkStoragePool != null && checkStoragePool.getPoolType().equals(StoragePoolType.StorPool)) { | ||
| SpConnectionDesc conn = StorPoolUtil.getSpConnection(dstData.getDataStore().getUuid(), dstData.getDataStore().getId(), storagePoolDetailsDao, primaryStoreDao); | ||
| String baseOn = StorPoolStorageAdaptor.getVolumeNameFromPath(srcTO.getPath(), true); | ||
| //uuid tag will be the same as srcData.uuid | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.