From nobody Wed Jan 24 20:21:29 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TKwMy0jFTz58fmV for ; Wed, 24 Jan 2024 20:21:34 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail2.karels.net (mail2.karels.net [3.19.118.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "freebsd", Issuer "freebsd" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TKwMx4gfjz4KDb; Wed, 24 Jan 2024 20:21:33 +0000 (UTC) (envelope-from mike@karels.net) Authentication-Results: mx1.freebsd.org; none Received: from mail2.karels.net (localhost [IPv6:0:0:0:0:0:0:0:1]) by mail2.karels.net (8.17.1/8.17.1) with ESMTP id 40OKLUQF052213; Wed, 24 Jan 2024 14:21:30 -0600 (CST) (envelope-from mike@karels.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=karels.net; s=mail2; t=1706127690; bh=kiZJCi1gwiOTGu516fEMWDk3ukZzr6Dvf006HGw9p/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=k+DRzk2OQXYjjTkv/P6TBCCMVLosjgkfUJm8rvC+ncwJ7fcx5W754sW8A57eo2rJU pHX+AfvhQzeRruxl0nM0kyNm0xiyWBsXzq+byhQxoobulpj4296R7aGAYhLP5CuFZx gK8XOamFs6DBffe1kpshR5W77UlgaVHqlqRNVmqXLUPIyEJ/1yF3+qhMGMKpd3xJ64 IBGFFYU29pGXHbT5fGTKuLZv1gbXz10Wc4nB22JlVadgmQAihPpEXD0Gc1jxTh7ziI SwXIstfJePkfFZ12WLWocYuS3OmS8GA6Ia3aYP3Hy0Qbxhq5gNJx1cAB+kRLlIS13l ns4oJTLXlx73Q== Received: from [10.0.2.130] ([73.62.165.147]) by mail2.karels.net with ESMTPSA id zGAkGEpxsWXzywAAs/W3XQ (envelope-from ); Wed, 24 Jan 2024 14:21:30 -0600 From: Mike Karels To: "\"Rodney W. Grimes\"" Cc: Warner Losh , Ed Maste , FreeBSD Current Subject: Re: Removing fdisk and bsdlabel (legacy partition tools) Date: Wed, 24 Jan 2024 14:21:29 -0600 X-Mailer: MailMate (1.14r6015) Message-ID: <0862D1C2-3C6F-479F-924C-9D68021BC0C6@karels.net> In-Reply-To: <202401241850.40OIoJ9o098489@gndrsh.dnsmgr.net> References: <202401241850.40OIoJ9o098489@gndrsh.dnsmgr.net> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4TKwMx4gfjz4KDb X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.16.0.0/14, country:US] On 24 Jan 2024, at 12:50, Rodney W. Grimes wrote: >> On Wed, Jan 24, 2024 at 8:45?AM Ed Maste wrote: >> >>> MBR (PC BIOS) partition tables were historically maintained with >>> fdisk(8), but gpart(8) has long been the preferred method for working >>> with partition tables of all types. fdisk has been declared as >>> obsolete in the man page since 2015. Similarly BSD disklabels were >>> historically maintained with bsdlabel. It does not yet have a >>> deprecation notice - I have proposed a man page addition in >>> https://reviews.freebsd.org/D43563. > > man page additions are not going to reach the people who may be > using this. This should be a gonein(15) added to the binary. > I also suspect that all of the people doing ufs installs > are doing so via bsdlabel, not gpart. I suspect that more ufs installs are done with bsdinstall than with bsdlabel. The interactive mode is much easier to use than bsdlabel -e, where you have to do your own arithmetic. A couple of wrappers around bsdinstall could make it a much better replacement for bsdlabel -e, etc. (No criticism of bsdlabel, but it's so old I don't remember if I wrote it; I think I did.) I have a number of test systems using ufs, and I do my modifications with gpart, which accepts humanized numbers and does the arithmetic. Mike