diff options
author | phk <phk@FreeBSD.org> | 2002-04-09 15:43:32 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-09 15:43:32 +0000 |
commit | a90e28ebbb699c856787836be56197be575fad47 (patch) | |
tree | b29d97c613e2113a270ed79ca6d8e042d070ec82 /sys/geom/geom_disk.c | |
parent | c2f17d16c728a0248466b433fc6c8ad52023ac3d (diff) | |
download | FreeBSD-src-a90e28ebbb699c856787836be56197be575fad47.zip FreeBSD-src-a90e28ebbb699c856787836be56197be575fad47.tar.gz |
Implement DIOCGFRONTSTUFF ioctl which reports how many bytes from the start
of the device magic stuff might occupy.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r-- | sys/geom/geom_disk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index 3b7b239..e6a2bcd 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -146,6 +146,8 @@ g_disk_start(struct bio *bp) else if (g_haveattr_off_t(bp, "GEOM::mediasize", dp->d_label.d_secsize * (off_t)dp->d_label.d_secperunit)) break; + else if (g_haveattr_off_t(bp, "GEOM::frontstuff", 0)) + break; else if (!strcmp(bp->bio_attribute, "GEOM::ioctl") && bp->bio_length == sizeof *gio) { gio = (struct g_ioctl *)bp->bio_data; |