xen-org/xen-api — pull request #784 by amarao (2012-07-23 15:35:06+00:00)
Title: Fix to xe-edit-bootloader

Old XCP use /dev/xvd* devices when done vbd-plug to dom0.
xe-edit-bootloader adds parition number to it:

-p 0 -> /dev/xvda0, -p 1 -> /dev/xvda1, etc.

New SM backend scheme use kpartx to get partitions from devices like this:

/dev/sm/backend/b9b15e78-c79b-f9b7-4238-d36be14b8075/a5711219-c54f-4d14-ad1e-a0ac36d16232p1
/dev/sm/backend/b9b15e78-c79b-f9b7-4238-d36be14b8075/a5711219-c54f-4d14-ad1e-a0ac36d16232p2

This fix replace old dev+part_num scheme with new: dev+'p'+part_num scheme.

Note: Partition numbers are shifting (was: 0,1,2,3,4,5...; become: 1,2,3,4,5,6...)