From: krw Date: Mon, 13 Sep 2021 11:44:40 +0000 (+0000) Subject: Document that the editing command 'disk' takes an optional units argument. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=64f8f61dd1b7a5cb6a59f6921eb18ea7ae3833a9;p=openbsd Document that the editing command 'disk' takes an optional units argument. --- diff --git a/sbin/fdisk/fdisk.8 b/sbin/fdisk/fdisk.8 index 08e4b5fab21..eb5e49bbcb5 100644 --- a/sbin/fdisk/fdisk.8 +++ b/sbin/fdisk/fdisk.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fdisk.8,v 1.105 2021/08/06 10:41:31 krw Exp $ +.\" $OpenBSD: fdisk.8,v 1.106 2021/09/13 11:44:40 krw Exp $ .\" .\" .\" Copyright (c) 1997 Tobias Weingartner @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: August 6 2021 $ +.Dd $Mdocdate: September 13 2021 $ .Dt FDISK 8 .Os .Sh NAME @@ -374,10 +374,22 @@ By default an MBR is initialized. If .Cm gpt is specified a protective MBR and a GPT are initialized. -.It Cm disk +.It Cm disk Op Ar unit Display the current drive geometry that .Nm probed using kernel provided information and various heuristics. +A +.Ar unit +.Sq b , +.Sq k , +.Sq m , +.Sq g , +or +.Sq t +may be appended to request that the size of +.Ar disk +be shown as bytes, kilobytes, megabytes, gigabytes, +or terabytes instead of sectors. The disk geometry may be changed at this point. Not available when editing a GPT. .It Cm edit Ar #