From 463d764d563c6926c334cffa9e5c3c6ccef5085b Mon Sep 17 00:00:00 2001 From: itojun Date: Tue, 18 Jun 2002 17:25:21 +0000 Subject: [PATCH] write/readdisklabel are not consistent in MBR-partitioned case; forbid writes for now (real fix should follow). --- sys/arch/macppc/macppc/disksubr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/arch/macppc/macppc/disksubr.c b/sys/arch/macppc/macppc/disksubr.c index 6157d5f8c8aa..035b830ff1e4 100644 --- a/sys/arch/macppc/macppc/disksubr.c +++ b/sys/arch/macppc/macppc/disksubr.c @@ -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 @@ readdisklabel(dev, strat, lp, osdep) } 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 */