Skip to content

Commit

Permalink
Ignore disk size of multipath slave in 205_compare_disk.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
schabrolles committed Dec 5, 2017
1 parent 91d671b commit 61c50d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usr/share/rear/layout/prepare/default/250_compare_disks.sh
Expand Up @@ -79,6 +79,8 @@ if ! is_true "$MIGRATION_MODE" ; then
test -d $current_device_path/queue || continue
# Continue with next block device if no size can be read for the current one:
test -r $current_device_path/size || continue
# Continue with next block device if the device is a multipath device slave
test is_multipath_path /dev/$current_device_path || continue
current_disk_name="${current_device_path#/sys/block/}"
current_size=$( get_disk_size $current_disk_name )
test "$current_size" -gt '0' && replacement_hardware_disk_sizes=( "${replacement_hardware_disk_sizes[@]}" "$current_size" )
Expand Down

0 comments on commit 61c50d0

Please sign in to comment.