From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-x22e.google.com (mail-la0-x22e.google.com [IPv6:2a00:1450:4010:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Wed, 5 Nov 2014 19:51:58 +0100 (CET) Received: by mail-la0-f46.google.com with SMTP id gm9so1249320lab.33 for ; Wed, 05 Nov 2014 10:51:57 -0800 (PST) Message-ID: <545A71CA.5060701@gmail.com> Date: Wed, 05 Nov 2014 19:51:54 +0100 From: Milan Broz MIME-Version: 1.0 References: <545A6BB0.4060705@ensslin.cc> In-Reply-To: <545A6BB0.4060705@ensslin.cc> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Subject: Re: [dm-crypt] How to tell whether a volume is currently suspended? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?windows-1252?Q?Michael_En=DFlin?= , dm-crypt@saout.de On 11/05/2014 07:25 PM, Michael En=DFlin wrote: > Hi, >=20 > 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 is the same like in cryptsetup) In script you can use it even simpler: dmsetup -c -o suspended --noheadings info But I am quite surprised it is not in "cryptsetup status" output :) I will add this info there in next version. Thanks, Milan