[dm-crypt] comment on API for saving and restoring luks header.

Milan Broz mbroz at redhat.com
Thu Apr 19 09:53:01 CEST 2012


On 04/18/2012 11:19 PM, .. ink .. wrote:
> 
> /**
>  * Backup header and keyslots to file
>  *
>  * @param cd crypt device handle
>  * @param requested_type type of header to backup
>  * @param backup_file file to backup header to
>  *
>  * @return @e 0 on success or negative errno value otherwise.
>  *
>  */
> 
> The above is a comments on options for "crypt_header_backup" and "crypt_header_restore".
> 
> The comment does not have "use @e NULL for all known" explanation for the second argument.
> 
> Should i assume this is an oversight and use "NULL" for the second argument?

The only format currently supporting this is LUKS anyway, but NULL is supported.

Better now?
http://wiki.cryptsetup.googlecode.com/git/API/libcryptsetup_8h.html#a0bba6108652c028e6e72e933a3a5de05

Milan


More information about the dm-crypt mailing list