Skip to contentSkip to conversation

How to tell whether a volume is currently suspended?

dm-crypt Michael Enßlin 2 participants 2 messages Nov 5, 2014

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 4 lines · Michael Enßlin

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