Bug#586104: fails to map extended partitions

Guido Günther agx at sigxcpu.org
Wed Jun 16 16:59:54 UTC 2010


Hi Martin,
On Wed, Jun 16, 2010 at 05:44:16PM +0200, martin f krafft wrote:
[..snip..] 
> piper:~|master|.tmp/cdt.YeESOF% sudo kpartx -av /dev/loop0
> add map loop0p1 (253:16): 0 192717 linear /dev/loop0 63
> add map loop0p2 (253:17): 0 192780 linear /dev/loop0 192780
> add map loop0p3 (253:18): 0 658665 linear /dev/loop0 385560
> add map loop0p5 : 0 192717 linear 253:18 385623
> device-mapper: resume ioctl failed: Invalid argument
> add map loop0p6 : 0 192717 linear 253:18 578403
> device-mapper: resume ioctl failed: Invalid argument
> add map loop0p7 : 0 273042 linear 253:18 771183
I do see the problem now. The mappings for the logical partitions in the
extended one are linear mappings onto the extended partiotion (253:18
in your case). So the offset (the last argument of the above outputs)
needs to be from the start from the extended partition not from the
whole disk (that's why your last two partitions won't fit).

I've pushed a fix to git - pulled from upstream.

The reason we're not seeing this is due to the fact that we only have
one logical partition in the extended one.

Cheers and thanks for the detailed report,
 -- Guido






More information about the pkg-lvm-maintainers mailing list