All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] crypt_get_uuid does not work as expected with plain volumes
@ 2013-01-18 18:29 .. ink ..
  2013-01-21 11:42 ` Milan Broz
  0 siblings, 1 reply; 4+ messages in thread
From: .. ink .. @ 2013-01-18 18:29 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 741 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 976 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-21 14:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-18 18:29 [dm-crypt] crypt_get_uuid does not work as expected with plain volumes .. ink ..
2013-01-21 11:42 ` Milan Broz
2013-01-21 13:40   ` .. ink ..
2013-01-21 14:19     ` Milan Broz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.