diff options
author | Warner Losh <imp@FreeBSD.org> | 2020-10-27 06:43:24 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2020-10-27 06:43:24 +0000 |
commit | a3f4217ec0d095f4e26030b4136f9925b939d186 (patch) | |
tree | cb948aee47e451e628507631d81bf117a5fff67e | |
parent | b85540d0a312d75514a87b35129261846d7cafac (diff) | |
download | src-test2-a3f4217ec0d095f4e26030b4136f9925b939d186.tar.gz src-test2-a3f4217ec0d095f4e26030b4136f9925b939d186.zip |
Notes
-rw-r--r-- | sys/geom/geom_dev.c | 3 | ||||
-rw-r--r-- | sys/geom/geom_disk.c | 2 | ||||
-rw-r--r-- | sys/sys/disk.h | 8 |
3 files changed, 0 insertions, 13 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c index 54b927350f9d..3dcf8a38a1e2 100644 --- a/sys/geom/geom_dev.c +++ b/sys/geom/geom_dev.c @@ -550,9 +550,6 @@ g_dev_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread 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: { diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index 620c77301be7..fb215fb3dab5 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -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)) diff --git a/sys/sys/disk.h b/sys/sys/disk.h index 2d267778ecb2..043a02c2d304 100644 --- a/sys/sys/disk.h +++ b/sys/sys/disk.h @@ -64,14 +64,6 @@ void disk_err(struct bio *bp, const char *what, int blkdone, int nl); * 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. |