bde a3c257601f Don't dump on the label sector or below. This avoids clobbering the
label if the dump device overflaps the label (which is a slight
misconfiguration).  Dump routines don't use dscheck(), so the normal
write protection of the label doesn't help.

Reduced some nearby overflow bugs.  In disk_dumpcheck(), there was
(fatal but fail-safe) overflow on i386's with 4GB of memory, at least
if Maxmem was the top page (can this happen?).  The fix assumes that
the sector size divides PAGE_SIZE (dump routines already assume this).
In setdumpdev(), the corresponding overflow occurred with only about
2GB of memory on all machines with 32-bit ints.  This allowed setdumpdev()
to succeed when it shouldn't have, but then disk_dumpcheck() failed
safe later.  Except in old versions of FreeBSD like RELENG_3 where
there is no disk_dumpcheck().

PR:		28164 (label clobbering part)
MFC after:	1 week
2001-08-15 11:35:45 +00:00
..
2001-01-28 06:39:56 +00:00
2001-07-06 01:16:43 +00:00
2001-08-09 01:21:58 +00:00
2001-07-22 00:21:19 +00:00
2001-08-14 22:13:14 +00:00
2001-01-01 23:09:53 +00:00
2001-06-01 10:07:28 +00:00
2001-06-01 10:07:28 +00:00
2001-05-28 01:00:03 +00:00
2001-07-03 21:46:43 +00:00
2001-08-10 22:33:59 +00:00
2001-07-30 19:28:02 +00:00
2001-05-30 03:28:59 +00:00
2001-05-15 18:12:38 +00:00
2001-06-11 12:39:29 +00:00
2001-06-11 12:39:29 +00:00
2001-06-29 04:01:38 +00:00
2001-06-29 04:01:38 +00:00