Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/macppc write/readdisklabel are not consisten...
details: https://anonhg.NetBSD.org/src/rev/9aedb61dcee3
branches: trunk
changeset: 532995:9aedb61dcee3
user: itojun <itojun%NetBSD.org@localhost>
date: Tue Jun 18 17:25:21 2002 +0000
description:
write/readdisklabel are not consistent in MBR-partitioned case;
forbid writes for now (real fix should follow).
diffstat:
sys/arch/macppc/macppc/disksubr.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r dd5bcd08f17b -r 9aedb61dcee3 sys/arch/macppc/macppc/disksubr.c
--- a/sys/arch/macppc/macppc/disksubr.c Tue Jun 18 17:22:10 2002 +0000
+++ b/sys/arch/macppc/macppc/disksubr.c Tue Jun 18 17:25:21 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.21 2002/06/17 15:07:06 itojun Exp $ */
+/* $NetBSD: disksubr.c,v 1.22 2002/06/18 17:25:21 itojun Exp $ */
/*
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -594,8 +594,10 @@
} else if (bswap16(*(u_int16_t *)(bp->b_data + MBR_MAGICOFF))
== MBR_MAGIC) {
msg = read_dos_label(dev, strat, lp, osdep);
+#if 0
if (!msg)
osdep->cd_start = 0;
+#endif
} else {
msg = "no disk label -- NetBSD or Macintosh";
osdep->cd_start = 0; /* XXX for now */
Home |
Main Index |
Thread Index |
Old Index