Module Name: src Committed By: martin Date: Thu Jun 20 10:56:38 UTC 2019
Modified Files: src/sbin/gpt: biosboot.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/sbin/gpt/biosboot.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/gpt/biosboot.c diff -u src/sbin/gpt/biosboot.c:1.31 src/sbin/gpt/biosboot.c:1.32 --- src/sbin/gpt/biosboot.c:1.31 Thu Apr 4 13:55:40 2019 +++ src/sbin/gpt/biosboot.c Thu Jun 20 10:56:38 2019 @@ -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 @@ cmd_biosboot(gpt_t gpt, int argc, char * 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; }