From 7163c9c1fc72b6c11746304914180fa8563e627e Mon Sep 17 00:00:00 2001 From: scottl Date: Fri, 15 Feb 2008 06:26:25 +0000 Subject: 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. --- sys/geom/geom_disk.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/geom') 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; -- cgit v1.1