Re: inconsistency in opening multiple mappers on the same device

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

 



On 06/01/2012 12:12 AM, .. ink .. wrote:
> It looks like by default, cryptsetup does not allow opening more than
> one mapper on the same device bu it only checks the mapper name, not
> the device behind the mapper and hence it allows opening of multiple
> mappers on the same device as long as they use a different mapper
> name.

No. Try it with real device. (Loop devices are strange, losetup
allows you to map more loopback devices to one file. It was
always the same here, try it with previous version...)

It is basically about this:

By default, cryptsetup require exclusive access to underlying device:

# echo xxx | src/cryptsetup create x /dev/sdb x
# echo xxx | src/cryptsetup create y /dev/sdb x
Cannot use device /dev/sdb which is in use (already mapped or mounted).

With --shared it allows to use the same (already used) underlying device
# echo xxx | src/cryptsetup create y /dev/sdb x --shared

Obviously you cannot have the same mapping name...

Milan
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux