DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] How to tell whether a volume is currently suspended?
@ 2014-11-05 18:25 Michael Enßlin
  2014-11-05 18:51 ` Milan Broz
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Enßlin @ 2014-11-05 18:25 UTC (permalink / raw)
  To: dm-crypt

Hi,

is there a utility to determine whether a LUKS volume is currently
suspended and needs resuming (via LuksSuspend/LuksResume)?

If not, how can it be implemented without duplicating large parts of
cryptsetup functionality?

 ~ Michael

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

* Re: [dm-crypt] How to tell whether a volume is currently suspended?
  2014-11-05 18:25 [dm-crypt] How to tell whether a volume is currently suspended? Michael Enßlin
@ 2014-11-05 18:51 ` Milan Broz
  0 siblings, 0 replies; 2+ messages in thread
From: Milan Broz @ 2014-11-05 18:51 UTC (permalink / raw)
  To: Michael Enßlin, dm-crypt

On 11/05/2014 07:25 PM, Michael Enßlin wrote:
> Hi,
> 
> is there a utility to determine whether a LUKS volume is currently
> suspended and needs resuming (via LuksSuspend/LuksResume)?

You can use dmsetup info <name>
(name is the same like in cryptsetup)

In script you can use it even simpler:
dmsetup -c -o suspended --noheadings info <name>

But I am quite surprised it is not in "cryptsetup status" output :)

I will add this info there in next version.

Thanks,
Milan

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

end of thread, other threads:[~2014-11-05 18:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-05 18:25 [dm-crypt] How to tell whether a volume is currently suspended? Michael Enßlin
2014-11-05 18:51 ` Milan Broz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox