[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] Weird discrepancy between /dev/mapper/* and /dev/dm-* devices breaks lilo

On Wed, Jan 31, 2007, Alasdair G Kergon wrote:
> >  Or is the device-mapper code supposed to accept device names from /dev
> >  as parameters?
> It does not do that at the moment.  Perhaps there's a case for adding
> inode->device number conversions to dmsetup: You're the first person
> to suggest this.

 Ok; lilo isn't calling the dmsetup command, but uses libdevmapper
 directly, so even if you add support for any /dev device name in
 dmsetup, it wont help lilo.  Hence, I've changed the problematic dm
 task call to use major/minor instead of the name (see attached patch)
 and will wait for feedback from users as I don't have such a setup.

 So, thanks for clarifying this!  I'm not sure it would be a good idea
 to accept device mapper names as well as /dev names in dmsetup as I
 think this would confuse things.  I personally like it that dmsetup
 reflects what the ioctl accepts, nothing more, nothing less.

PS: I was wrong when saying that the code is in a Debian specific patch,
the patch is only historic and the problematic code is in the lilo
Loïc Minier <lool dooz org>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]