summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2008-02-15 06:26:25 +0000
committerscottl <scottl@FreeBSD.org>2008-02-15 06:26:25 +0000
commit7163c9c1fc72b6c11746304914180fa8563e627e (patch)
tree4958c512865fe26e6b17b30580c14079b103b657 /sys/geom
parente71de3c9ad013267735cf051f1a258c8d5d60068 (diff)
downloadFreeBSD-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')
-rw-r--r--sys/geom/geom_disk.c1
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;
OpenPOWER on IntegriCloud