Return-Path: Received: from mail-wr0-x22f.google.com (mail-wr0-x22f.google.com [IPv6:2a00:1450:400c:c0c::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Wed, 15 Feb 2017 20:30:57 +0100 (CET) Received: by mail-wr0-x22f.google.com with SMTP id c4so40071895wrd.2 for ; Wed, 15 Feb 2017 11:30:56 -0800 (PST) References: <20170215181428.GB28234@gmx.com> From: Milan Broz Message-ID: <83fa67bd-c2b5-0f48-4f50-de6e1020289a@gmail.com> Date: Wed, 15 Feb 2017 20:30:53 +0100 MIME-Version: 1.0 In-Reply-To: <20170215181428.GB28234@gmx.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] cryptsetup manpage: misleading/imprecise description of --size for resize List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "G.raud" , dm-crypt@saout.de On 02/15/2017 07:14 PM, G.raud wrote: > Incriminated part of the cryptsetup manpage: > > " If --size (in sectors) is not specified, the size of the > underlying block device is used. " > > In fact the size of the underlying block device is used _to compute_ the > _maximum_ size that can be made available, which in case of LUKS is not > the whole block device space. The manpage can be misleading to someone > who doesn't know dmcrypt well and wants to resize a LUKS container. At > least append something like "to compute the maximum available size" or > change to "the whole available space is used" for example. > > The maximum size in the case of LUKS is, I think, the size of the block > device minus the offset; this could be additionaly stated in the > manpage. I think part of this sentence in man page predates the LUKS extension :) Yes, in LUKS it is the size of the device without the area reserved for header (visible in luksDump as payload offset). I changed the man page to mention that. Thanks, Milan