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 Do not try to create a fake MBR diskl...



details:   https://anonhg.NetBSD.org/src/rev/0b8312747a52
branches:  trunk
changeset: 368926:0b8312747a52
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Aug 13 09:34:47 2022 +0000

description:
Do not try to create a fake MBR disklabel from the PMBR of a GPT disk.

diffstat:

 sys/arch/macppc/macppc/disksubr.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r f2327c06693d -r 0b8312747a52 sys/arch/macppc/macppc/disksubr.c
--- a/sys/arch/macppc/macppc/disksubr.c Sat Aug 13 07:22:40 2022 +0000
+++ b/sys/arch/macppc/macppc/disksubr.c Sat Aug 13 09:34:47 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disksubr.c,v 1.49 2014/03/14 21:59:41 mrg Exp $        */
+/*     $NetBSD: disksubr.c,v 1.50 2022/08/13 09:34:47 martin Exp $     */
 
 /*
  * Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -106,7 +106,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.49 2014/03/14 21:59:41 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.50 2022/08/13 09:34:47 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -497,6 +497,8 @@
        bsdp = NULL;
        for (i = 0; i < MBR_PART_COUNT; i++, dp++) {
                switch (dp->mbrp_type) {
+               case MBR_PTYPE_PMBR:
+                       goto done;      /* do not fake anything for GPT disks */
                case MBR_PTYPE_NETBSD:
                        bsdp = dp;
                        break;



Home | Main Index | Thread Index | Old Index