Date: Sat, 5 Oct 2002 04:24:22 -0700 (PDT) From: Brian Somers <brian@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern subr_disk.c Message-ID: <200210051124.g95BOMk2092338@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
brian 2002/10/05 04:24:22 PDT
Modified files:
sys/kern subr_disk.c
Log:
If dsgetlabel() returns a label with a size of zero in diskdumpconf(),
treat it as an invalid partition.
This fixes a bug where ``dumpon <device>'' will configure the dump
device at a random offset on the disk if <device> isn't a valid
partition.
Reviewed by: phk
Revision Changes Path
1.60 +2 -0 src/sys/kern/subr_disk.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210051124.g95BOMk2092338>
