<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - RFE: implement --header option in systemd-cryptsetup/crypttab"
href="https://bugs.freedesktop.org/show_bug.cgi?id=66396#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - RFE: implement --header option in systemd-cryptsetup/crypttab"
href="https://bugs.freedesktop.org/show_bug.cgi?id=66396">bug 66396</a>
from <span class="vcard"><a class="email" href="mailto:chaser.andrey@gmail.com" title="Chaser <chaser.andrey@gmail.com>"> <span class="fn">Chaser</span></a>
</span></b>
<pre>(In reply to Zbigniew Jedrzejewski-Szmek from <a href="show_bug.cgi?id=66396#c3">comment #3</a>)
<span class="quote">> @@ +634,4 @@
> > if (streq_ptr(arg_type, CRYPT_TCRYPT))
> > k = attach_tcrypt(cd, argv[2], key_file, passwords, flags);
> > else
> > + k = attach_luks_or_plain(cd, argv[2], key_file, ( arg_header ? argv[3] : NULL), passwords, flags);
>
> I don't grok this. Why argv[3] is used if arg_header is set?</span >
argv[3] contains data_device if (and only if) arg_header is set.
<span class="quote">> + if (data_device)
> + r = crypt_set_data_device(cd, data_device);</span >
>From official docs:
<span class="quote">> int crypt_set_data_device (struct crypt_device * cd, const char * device)
> Set data device For LUKS it is encrypted data device when LUKS header is separated.</span >
See also
<a href="http://wiki.cryptsetup.googlecode.com/git/API/libcryptsetup_8h.html#aff3afff2a83a64f80962afa446eb9dca">http://wiki.cryptsetup.googlecode.com/git/API/libcryptsetup_8h.html#aff3afff2a83a64f80962afa446eb9dca</a>
(</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>