mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-29 18:45:29 +00:00
refactor storage whitelist in sync_disks to regex
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
4c2f3755c7
commit
dad06e2068
@ -426,8 +426,7 @@ sub sync_disks {
|
||||
my ($sid, $volname) = PVE::Storage::parse_volume_id($volid);
|
||||
my $scfg = PVE::Storage::storage_config($self->{storecfg}, $sid);
|
||||
|
||||
my $migratable = ($scfg->{type} eq 'dir') || ($scfg->{type} eq 'zfspool') ||
|
||||
($scfg->{type} eq 'lvmthin') || ($scfg->{type} eq 'lvm');
|
||||
my $migratable = $scfg->{type} =~ /^(?:dir|zfspool|lvmthin|lvm)$/;
|
||||
|
||||
die "can't migrate '$volid' - storage type '$scfg->{type}' not supported\n"
|
||||
if !$migratable;
|
||||
|
Loading…
Reference in New Issue
Block a user