Skip to content

Commit

Permalink
Add support for multipath devices
Browse files Browse the repository at this point in the history
Previously, when a device-mapper multipath device was specified for DEVS
setup would fail with "Partition specification unsupported at this
time." Each device is checked to see if it has a parent, and, if so, it
is assumed to be a partition.  Multipath devices are not partitions, and
their backing paths are reported as parent devices.

This change adds the ability to correctly identify multipath devices by
checking for device type of "mpath" so that they are not mistaken for
partitions.

Closes: projectatomic#270
Approved by: rhvgoyal
  • Loading branch information
control-d authored and rh-atomic-bot committed Jun 12, 2018
1 parent 42c9d9c commit 5eaf76c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions container-storage-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,10 @@ is_block_dev_partition() {
return 0
fi

if [ "$disktype" == "mpath" ];then
return 1
fi

# For loop device partitions, lsblk reports type as "loop" and not "part".
# So check if device has a parent in the tree and if it does, there are high
# chances it is partition (except the case of lvm volumes)
Expand Down

0 comments on commit 5eaf76c

Please sign in to comment.