-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix KVM import/unmanage support for SharedMountPoint pools #12956
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
base: 4.22
Are you sure you want to change the base?
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 |
|---|---|---|
|
|
@@ -52,7 +52,7 @@ | |
| public final class LibvirtGetVolumesOnStorageCommandWrapper extends CommandWrapper<GetVolumesOnStorageCommand, Answer, LibvirtComputingResource> { | ||
|
|
||
| static final List<StoragePoolType> STORAGE_POOL_TYPES_SUPPORTED_BY_QEMU_IMG = Arrays.asList(StoragePoolType.NetworkFilesystem, | ||
| StoragePoolType.Filesystem, StoragePoolType.RBD); | ||
| StoragePoolType.Filesystem, StoragePoolType.RBD, StoragePoolType.SharedMountPoint); | ||
|
Comment on lines
54
to
+55
|
||
|
|
||
| @Override | ||
| public Answer execute(final GetVolumesOnStorageCommand command, final LibvirtComputingResource libvirtComputingResource) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same immutability concern here:
Arrays.asList(...)produces a list that can still be mutated viaset(...). Since this is an interface constant used for validation, it’s safer to expose an immutable list (e.g.,List.of(...)orCollections.unmodifiableList(Arrays.asList(...))) to avoid unexpected behavior if any caller modifies it.