diff options
author | scottl <scottl@FreeBSD.org> | 2008-02-15 06:26:25 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2008-02-15 06:26:25 +0000 |
commit | 7163c9c1fc72b6c11746304914180fa8563e627e (patch) | |
tree | 4958c512865fe26e6b17b30580c14079b103b657 /sys/geom/geom_disk.c | |
parent | e71de3c9ad013267735cf051f1a258c8d5d60068 (diff) | |
download | FreeBSD-src-7163c9c1fc72b6c11746304914180fa8563e627e.zip FreeBSD-src-7163c9c1fc72b6c11746304914180fa8563e627e.tar.gz |
Teach the dump and minidump code to respect the maxioszie attribute of
the disk; the hard-coded assumption of 64K doesn't work in all cases.
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r-- | sys/geom/geom_disk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index 725a7d0..c39c038 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -179,6 +179,7 @@ g_disk_kerneldump(struct bio *bp, struct disk *dp) di.dumper = dp->d_dump; di.priv = dp; di.blocksize = dp->d_sectorsize; + di.maxiosize = dp->d_maxsize; di.mediaoffset = gkd->offset; if ((gkd->offset + gkd->length) > dp->d_mediasize) gkd->length = dp->d_mediasize - gkd->offset; |