Re: SCSI DVD-RAM partitions

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

 



Hi Christoph

You wrote:
>>Ok, thanks for your valuable input. In fact, I thought about making
>>the device available both as /dev/srX and /dev/sdX at the same time
>>in order to support partitions. In my case it would even suffice to
>>make it available as /dev/sdX instead of /dev/srX.
> 
> That doesn't make sense because sd is a very different driver from sd.
> Besides that aliasing different dev_ts to the same underlying blockdevice
> can't work, it's cause all sorts of aliasing problems.

Ok.

> It would probably be better to use device-mapper than the loop device.
> I think there's already userland partition parsing code for dm, and
> having a simple command line tool to do that, and maybe even automatically
> run through udev and creating /dev/sr<num>p<partition> devices would
> be very nice to have as an almost invisible workaround.

Ok, that sounds reasonable. I have not yet searched for the partition
parsing code for dm but it should not be too hard to write this on
one's own. However, it is not clear to me whether this would work
automatically, i.e. insert dvd-ram medium -> udev event is triggered ->
device nodes are created via dmsetup.

Will there some (udev) event be triggered once a dvd-ram medium is
inserted?

Moreover, some event would have to be triggered if the dvd-ram medium
is removed in order to delete the device nodes.


Regards,

Thomas
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux