Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/gpt When biosboot is used on an existing wedge and we a...



details:   https://anonhg.NetBSD.org/src/rev/dc4d9bb39691
branches:  trunk
changeset: 452167:dc4d9bb39691
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Jun 20 10:56:38 2019 +0000

description:
When biosboot is used on an existing wedge and we are switching to
the gpt of the parent device, do not pass the size of the wedge to
gpt_open, it certainly is smaller than the whole device.
Fixes bin/54312.

diffstat:

 sbin/gpt/biosboot.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7b2efabd948c -r dc4d9bb39691 sbin/gpt/biosboot.c
--- a/sbin/gpt/biosboot.c       Thu Jun 20 10:46:24 2019 +0000
+++ b/sbin/gpt/biosboot.c       Thu Jun 20 10:56:38 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: biosboot.c,v 1.31 2019/04/04 13:55:40 martin Exp $ */
+/*     $NetBSD: biosboot.c,v 1.32 2019/06/20 10:56:38 martin Exp $ */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #ifdef __RCSID
-__RCSID("$NetBSD: biosboot.c,v 1.31 2019/04/04 13:55:40 martin Exp $");
+__RCSID("$NetBSD: biosboot.c,v 1.32 2019/06/20 10:56:38 martin Exp $");
 #endif
 
 #include <sys/stat.h>
@@ -312,7 +312,7 @@
                start = dkw.dkw_offset;
                size = dkw.dkw_size;
                ngpt = gpt_open(dkw.dkw_parent, gpt->flags, gpt->verbose,
-                   gpt->mediasz, gpt->secsz, gpt->timestamp);
+                   0, 0, 0);
                if (ngpt == NULL)
                        goto cleanup;
        }



Home | Main Index | Thread Index | Old Index