From nobody Wed Jan 24 15:44:57 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 4TKpF54wgXz58Dvx for ; Wed, 24 Jan 2024 15:45:13 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TKpF451jsz4pB6 for ; Wed, 24 Jan 2024 15:45:12 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=freebsd.org (policy=none); spf=pass (mx1.freebsd.org: domain of carpeddiem@gmail.com designates 209.85.208.182 as permitted sender) smtp.mailfrom=carpeddiem@gmail.com Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2cc9fa5e8e1so60587091fa.3 for ; Wed, 24 Jan 2024 07:45:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706111109; x=1706715909; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=7M80f0TW9XbVlBVyLCsRdYlAU9FHIcckfevyXbXpI64=; b=nB4o62WRGDoX8SWFdK0mtxTFQew0OJlfJ3kJ2zWzR5H3wNYKfdmMGJ1L2EJo2uOJIT vTYELpHsLmZNdc3i/WC8iOm8AEPmIc4MhcLwUy5eMHyK5z3Lj5kGrMWV7SG3Cp4bJkZd m1F5WwHh0qKz/65ScwvUCkspWuCy/w/pVLP7scOqcz2tQf70eTdPRk8J/nyBWxb8hGr7 +6tbnhLNIEQMGIkr0Rpc8trDNY2BUGWm3QN20Hg959JFRhxQ+A3lqLFbh/An2HIi6+tE xbaIIs405dY8/cPBL+G5WWkhXdQfKd3j7gVEPx3/wM8pYAEhCGaoVWhe0X/OmApUX6fF ioyQ== X-Gm-Message-State: AOJu0YxU4KIz94QuVpOK1Iyu3PNhJFQWiKfRW6dl34dvN6gyo47H/4/5 6E5RjwsY3B0wSsC/jF+gMYzviq2DNqdMYCVSAH2JfPUrmuVAKY8jzOcgQ7ukh9GQt9YzmiU8hKd BkgjEcbscjgzcbBlzQBaiEyCFzsH6BExSmPA= X-Google-Smtp-Source: AGHT+IEwuyfcRCBvUvThygOh0xrbh3M9SWTp1eDGshi+bYaeSC8PUgqsr5fvrRcMc9Ui+aYxRn05ffgSTzyyFZ6ioyg= X-Received: by 2002:a2e:c42:0:b0:2cf:2ba3:e3d1 with SMTP id o2-20020a2e0c42000000b002cf2ba3e3d1mr394213ljd.38.1706111109232; Wed, 24 Jan 2024 07:45:09 -0800 (PST) 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 From: Ed Maste Date: Wed, 24 Jan 2024 10:44:57 -0500 Message-ID: Subject: Removing fdisk and bsdlabel (legacy partition tools) To: FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.90 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FORGED_SENDER(0.30)[emaste@freebsd.org,carpeddiem@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), No valid DKIM,none]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; FREEFALL_USER(0.00)[carpeddiem]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; FROM_NEQ_ENVFROM(0.00)[emaste@freebsd.org,carpeddiem@gmail.com]; RCVD_COUNT_ONE(0.00)[1]; R_DKIM_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.182:from]; TO_DOM_EQ_FROM_DOM(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.182:from] X-Rspamd-Queue-Id: 4TKpF451jsz4pB6 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. I would like to disconnect these from the build, and subsequently remove them. This is prompted by a recent bsdlabel bug report which uncovered a longstanding buffer overflow in that tool. Effort is much better focused on contemporary, maintained tools rather than investigating issues in deprecated ones. Removing these tools would happen in FreeBSD 15 only (no change in 14 or 13). Code review to disconnect fdisk: https://reviews.freebsd.org/D43575 Note that this effort is limited to these maintenance tools only - there is no change to kernel or gpart support for MBR or BSD disklablel partitioning. That said, MBR partitioning and BSD disklabels are best considered legacy formats and should be avoided for new installations, if possible. If anyone is using fdisk and/or bsdlabel rather than gpart I would appreciate knowing what is preventing you from using the contemporary tools.