Bug#704160: kpartx says it will create /dev/loop0p1 but uses other names

Ritesh Raj Sarraf rrs at researchut.com
Fri Mar 29 20:47:13 UTC 2013


On Saturday 30 March 2013 01:52 AM, Stefan Monnier wrote:
> The problem that needs fixing is that "kpartx -l /dev/loop0" says
> /dev/loop0p1 even though it ends not using this name.

It doesn't report so on my box.

rrs at zan:~$ sudo kpartx -l /dev/sda
[sudo] password for rrs:
sda1 : 0 97656250 /dev/sda 2048
sda2 : 0 152411382 /dev/sda 97658298


rrs at zan:~$ sudo kpartx -l /dev/loop0
loop0p1 : 0 4091904 /dev/loop0 2048

> I suggested to fix it by adding a /dev/loop0p1 symlink,

Why? That part is anyways taken care by partx. I am not sure how partx
is consumed, but if you run it manually, it will create the proper
mappings for you.

>  but if you
> prefer to fix it by changing the output of "kpartx -l", that's fine by
> me, all that matters is that "kpartx -l" should return one of the file
> names that will end up being used.

But only for device mapper.

DESCRIPTION
This tool, derived from util-linux' partx, reads partition tables on
specified device and create device maps over par‐
titions segments detected. It is called from hotplug upon device maps
creation and deletion.


If you still see a bug in it, please let me know.

-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 897 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20130330/adba08c8/attachment-0001.pgp>


More information about the pkg-lvm-maintainers mailing list