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

[dm-devel] Re: dm targets with spaces in the name



Alasdair G Kergon wrote:
I can't guarantee that names with spaces in them have had much testing
as LVM doesn't permit them.  But device-mapper itself and dmsetup
are supposed to support them.
<snip>
Tools really should not be passing path names into constructors - use the
major:minor format instead as the in-kernel code paths are much more
predictable, there are fewer opportunities for races and so it offers
better control to the userspace code.

But if you run dmsetup and key in a table referencing a device with a space in the name, that is what happens; linear_ctr gets passed "/dev/foo bar" as the path argv. Shouldn't it then be just as capable of opening the device as a call to open()?


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