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@zan:~$ sudo kpartx -l /dev/sda
[sudo] password for rrs:
sda1 : 0 97656250 /dev/sda 2048
sda2 : 0 152411382 /dev/sda 97658298


rrs@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."


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to