From owner-svn-src-head@freebsd.org Tue Oct 27 06:43:25 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7F717440501; Tue, 27 Oct 2020 06:43:25 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CL2GP2rRYz4PRC; Tue, 27 Oct 2020 06:43:25 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 44F5F27463; Tue, 27 Oct 2020 06:43:25 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 09R6hPEI008908; Tue, 27 Oct 2020 06:43:25 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 09R6hOLH008905; Tue, 27 Oct 2020 06:43:24 GMT (envelope-from imp@FreeBSD.org) Message-Id: <202010270643.09R6hOLH008905@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Tue, 27 Oct 2020 06:43:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r367071 - in head/sys: geom sys X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: in head/sys: geom sys X-SVN-Commit-Revision: 367071 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2020 06:43:25 -0000 Author: imp Date: Tue Oct 27 06:43:24 2020 New Revision: 367071 URL: https://svnweb.freebsd.org/changeset/base/367071 Log: Remove frontstuff Nothing implements this in the tree. Remove the ioctl and the conversion to the geom atttribute stuff. This was introduced in r94287 in 2002 and was retired in r113390 2003. It appeared in FreeBSD 5.0, but no other releases. This is a vestige that was missed at the time and overlooked until now. No compat is provided for this reason. And there's no implementation of it today. And it was never part of a release from a stable branch. Reviewed by: phk@ Differential Revision: https://reviews.freebsd.org/D26967 Modified: head/sys/geom/geom_dev.c head/sys/geom/geom_disk.c head/sys/sys/disk.h Modified: head/sys/geom/geom_dev.c ============================================================================== --- head/sys/geom/geom_dev.c Tue Oct 27 04:35:47 2020 (r367070) +++ head/sys/geom/geom_dev.c Tue Oct 27 06:43:24 2020 (r367071) @@ -550,9 +550,6 @@ g_dev_ioctl(struct cdev *dev, u_long cmd, caddr_t data if (error == 0 && *(u_int *)data == 0) error = ENOENT; break; - case DIOCGFRONTSTUFF: - error = g_io_getattr("GEOM::frontstuff", cp, &i, data); - break; #ifdef COMPAT_FREEBSD11 case DIOCSKERNELDUMP_FREEBSD11: { Modified: head/sys/geom/geom_disk.c ============================================================================== --- head/sys/geom/geom_disk.c Tue Oct 27 04:35:47 2020 (r367070) +++ head/sys/geom/geom_disk.c Tue Oct 27 06:43:24 2020 (r367071) @@ -498,8 +498,6 @@ g_disk_start(struct bio *bp) break; else if (g_handleattr_int(bp, "GEOM::fwheads", dp->d_fwheads)) break; - else if (g_handleattr_off_t(bp, "GEOM::frontstuff", 0)) - break; else if (g_handleattr_str(bp, "GEOM::ident", dp->d_ident)) break; else if (g_handleattr_str(bp, "GEOM::descr", dp->d_descr)) Modified: head/sys/sys/disk.h ============================================================================== --- head/sys/sys/disk.h Tue Oct 27 04:35:47 2020 (r367070) +++ head/sys/sys/disk.h Tue Oct 27 06:43:24 2020 (r367071) @@ -64,14 +64,6 @@ void disk_err(struct bio *bp, const char *what, int bl * core dumps. */ -#define DIOCGFRONTSTUFF _IOR('d', 134, off_t) - /* - * Many disk formats have some amount of space reserved at the - * start of the disk to hold bootblocks, various disklabels and - * similar stuff. This ioctl returns the number of such bytes - * which may apply to the device. - */ - #define DIOCGFLUSH _IO('d', 135) /* Flush write cache */ /* * Flush write cache of the device.