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.[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
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