How to tell whether a volume is currently suspended?
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
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