Kernel - properly handle max. io size when dumping
authorFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 7 Apr 2012 07:08:46 +0000 (09:08 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Sat, 7 Apr 2012 07:50:48 +0000 (09:50 +0200)
commitc6de20f8a94ffd8eefe2f59093a85824871e97ed
treebecfaf7aae0f352173813fa4e337bc5f4ac490ab
parent7d5961dd7b7ab73a9737a181e6d9f9b24de80963
Kernel - properly handle max. io size when dumping

* A magic constant was used to define the maximum IO size used when
  dumping core

* Stop this practice and use the information provided by the underlying
  device driver, capping the result to MAXPHYS if needed.

* This should fix issue #2343
sys/kern/subr_disk.c
sys/platform/pc32/i386/dump_machdep.c
sys/platform/pc32/i386/minidump_machdep.c
sys/platform/pc64/x86_64/dump_machdep.c
sys/platform/pc64/x86_64/minidump_machdep.c