[dm-crypt] How to tell whether a volume is currently suspended?

Milan Broz gmazyland at gmail.com
Wed Nov 5 19:51:54 CET 2014


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


More information about the dm-crypt mailing list