[dm-crypt] crypt_get_uuid does not work as expected with plain volumes

.. ink .. mhogomchungu at gmail.com
Fri Jan 18 19:29:00 CET 2013


tested with cryptsetup version 1.6.0

http://pastebin.com/G1jtyCZN

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

[root at mtz ~]# cryptsetup create rrr /home/ink/rrr.img
Enter passphrase:
[root at mtz ~]#
[root at mtz ~]# /home/ink/tt /dev/mapper/rrr
UUID=PLAIN-rrr
[root at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.saout.de/pipermail/dm-crypt/attachments/20130118/53faaf42/attachment.html>


More information about the dm-crypt mailing list