From: Milan Broz <gmazyland@gmail.com>
To: mhogomchungu@gmail.com
Cc: dm-crypt <dm-crypt@saout.de>
Subject: Re: [dm-crypt] an official way to know if the underlying device is gone for all supported volume formats
Date: Tue, 19 Mar 2013 07:22:27 +0100 [thread overview]
Message-ID: <51480423.7040807@gmail.com> (raw)
In-Reply-To: <CAFnMBaTah7oR=D2j=da5ZosN8y65e+sAtaTzgd4EPE+TQ_xECQ@mail.gmail.com>
On 19.3.2013 3:24, .. ink .. wrote:
> and what about truecrypt volume? The point is that when the
> underlying device is gone,the API becomes contradicting and
> unpredictable as it start to exhibit undocumented behaviors.
No, crypt_get_type() should return NULL in this case ("unknown").
This is documented value.
...
> There is another API i do not remember at the moment than return
> undocumented NULL in this situation.
For unknown type the query operations are not defined (resp. you get NULL)
because itnerenaly it is is nor (yet) recognised.
But yes, it should be probably unified and documented better (NULL
seems to missing in doc in some query commands).
(In fact, underlying device cannot disapper if in use - there is still
(in kernel) some reference used in maping table but userspace behaves
diferently seems.)
Milan
prev parent reply other threads:[~2013-03-19 6:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-18 6:30 [dm-crypt] an official way to know if the underlying device is gone for all supported volume formats .. ink ..
2013-03-18 22:01 ` Milan Broz
2013-03-19 2:24 ` .. ink ..
2013-03-19 6:22 ` Milan Broz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51480423.7040807@gmail.com \
--to=gmazyland@gmail.com \
--cc=dm-crypt@saout.de \
--cc=mhogomchungu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.