diff options
author | kib <kib@FreeBSD.org> | 2008-10-31 10:11:35 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-10-31 10:11:35 +0000 |
commit | 37e83ace481e6bee3806133c4503bf6b4a5f902c (patch) | |
tree | c6f97f1df44fb4cf969476de15ea2052082d49c6 /sys/geom/geom_disk.c | |
parent | 1f7fd22cbb0aee819818bb3aefce34cfa71e0ee6 (diff) | |
download | FreeBSD-src-37e83ace481e6bee3806133c4503bf6b4a5f902c.zip FreeBSD-src-37e83ace481e6bee3806133c4503bf6b4a5f902c.tar.gz |
Revert r184136. Instead, push the check for crashdumpmap overflow into the
MD i386 and amd64 dump code.
Requested by: jhb
Retested by: pho
MFC after: 3 days (+ 176304 + 184136)
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r-- | sys/geom/geom_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index a931dcf..20998bd 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -179,7 +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 = min(dp->d_maxsize, MAXDUMPPGS * PAGE_SIZE); + di.maxiosize = dp->d_maxsize; di.mediaoffset = gkd->offset; if ((gkd->offset + gkd->length) > dp->d_mediasize) gkd->length = dp->d_mediasize - gkd->offset; |