From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Tue, 29 Oct 2019 14:07:46 +0100 (CET) Received: by mail-wm1-x329.google.com with SMTP id g7so2494497wmk.4 for ; Tue, 29 Oct 2019 06:07:45 -0700 (PDT) References: <4eea62ab-e121-d069-9be2-048b09cf301e@gmail.com> From: Milan Broz Message-ID: <4fd9084a-e78d-6c16-edb7-2dec936023dc@gmail.com> Date: Tue, 29 Oct 2019 14:07:43 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [dm-crypt] 10 M Luks2 header size? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hualing Yu , "dm-crypt@saout.de" On 28/10/2019 14:50, Hualing Yu wrote: > I am sorry that I cannot resist asking more questions as your answer > indicate more opportunities 8-) If they are very simple to you to > answer, thank you for just drop a few lines; if not, you can simply > ignore. >=20 > 1. You said =93=85if you have no extra user JSON data stored there= =94. > Can we use that area to store additional user data? How? You can create custom token type and import directly JSON through cryptsetup token import command. There is just mandatory type object, otherwise it can= be arbitrary valid JSON. (I plan to write some article about it but I promised this months ago ... := -) =20 > 2. To check if a LUKS is in good condition, can we just use > isLuks command? Does this cmd trigger some internal sanitary > checking? Hm, in theory yes (it calls functions that will do autorecovery), so side effect is that it validates JSON areas. But note that any LUKS load will recover invalid JSON area if there is one area valid (it requires access to cryptsetup locks directory and of course write access rights to the image/device). IOW it should "autorepair". If not possible, commands starts to fail as there is no LUKS2 header. Milan