Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/disklabel Provide some information when confirming "Wri...
details: https://anonhg.NetBSD.org/src/rev/b06c317349d8
branches: trunk
changeset: 486566:b06c317349d8
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu May 25 21:23:37 2000 +0000
description:
Provide some information when confirming "Write outside MBR partition".
diffstat:
sbin/disklabel/disklabel.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 74c354833877 -r b06c317349d8 sbin/disklabel/disklabel.c
--- a/sbin/disklabel/disklabel.c Thu May 25 21:10:14 2000 +0000
+++ b/sbin/disklabel/disklabel.c Thu May 25 21:23:37 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disklabel.c,v 1.81 2000/01/31 16:01:06 soda Exp $ */
+/* $NetBSD: disklabel.c,v 1.82 2000/05/25 21:23:37 thorpej Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -47,7 +47,7 @@
static char sccsid[] = "@(#)disklabel.c 8.4 (Berkeley) 5/4/95";
/* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */
#else
-__RCSID("$NetBSD: disklabel.c,v 1.81 2000/01/31 16:01:06 soda Exp $");
+__RCSID("$NetBSD: disklabel.c,v 1.82 2000/05/25 21:23:37 thorpej Exp $");
#endif
#endif /* not lint */
@@ -483,8 +483,12 @@
* wants to convert the drive for dedicated use.
*/
if (dosdp) {
- if (dosdp->mbrp_start != pp->p_offset)
+ if (dosdp->mbrp_start != pp->p_offset) {
+ printf("NetBSD slice at %u, "
+ "partition C at %u\n", dosdp->mbrp_start,
+ pp->p_offset);
confirm("Write outside MBR partition");
+ }
sectoffset = (off_t)pp->p_offset * lp->d_secsize;
} else {
if (mbrpt_nobsd)
Home |
Main Index |
Thread Index |
Old Index