crypt_get_uuid does not work as expected with plain volumes

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

 



tested with cryptsetup version 1.6.0

http://pastebin.com/G1jtyCZN

link above has source code for the "tt" program below

[root@mtz ~]# cryptsetup create rrr /home/ink/rrr.img
Enter passphrase:
[root@mtz ~]#
[root@mtz ~]# /home/ink/tt /dev/mapper/rrr
UUID=PLAIN-rrr
[root@mtz ~]# /home/ink/tt /dev/mapper/zuluCrypt-500-NAAN-truecrypt-2273
crypt_get_uuid() failed: No such file or directory


The source code and the test show crypt_get_uuid does not work as expected with plain volumes but does with truecrypt volumes and luks volumes. The expected behavior is to return NULL on volumes that do not support UUID.

with plain volumes,instead of "NULL",crypt_get_uuid returns "PLAIN-XYZ" where "XYZ" is the last component of the mapper path.

_______________________________________________
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