diskmanage: allow partitions for get_udev_info
both existing callers only call this with non-partitions currently, so the change should be backwards compatible. In preparation to enable ZFS creation on top of partitions (where the udev info is used to get the stable by-id path of a device). Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
21a75847a8
commit
0f4533476d
@ -327,7 +327,7 @@ sub get_udev_info {
|
||||
warn $@ if $@;
|
||||
return undef if !$info;
|
||||
|
||||
return undef if $info !~ m/^E: DEVTYPE=disk$/m;
|
||||
return undef if $info !~ m/^E: DEVTYPE=(disk|partition)$/m;
|
||||
return undef if $info =~ m/^E: ID_CDROM/m;
|
||||
|
||||
# we use this, because some disks are not simply in /dev
|
||||
|
||||
Reference in New Issue
Block a user