Module Name: src Committed By: jnemeth Date: Sun Mar 3 03:20:43 UTC 2019
Modified Files: src/sbin/gpt: show.c Log Message: Make it clear when displaying data from the MBR. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/sbin/gpt/show.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/show.c diff -u src/sbin/gpt/show.c:1.41 src/sbin/gpt/show.c:1.42 --- src/sbin/gpt/show.c:1.41 Thu Sep 7 10:23:33 2017 +++ src/sbin/gpt/show.c Sun Mar 3 03:20:42 2019 @@ -33,7 +33,7 @@ __FBSDID("$FreeBSD: src/sbin/gpt/show.c,v 1.14 2006/06/22 22:22:32 marcel Exp $"); #endif #ifdef __RCSID -__RCSID("$NetBSD: show.c,v 1.41 2017/09/07 10:23:33 christos Exp $"); +__RCSID("$NetBSD: show.c,v 1.42 2019/03/03 03:20:42 jnemeth Exp $"); #endif #include <sys/bootblock.h> @@ -344,6 +344,9 @@ cmd_show(gpt_t gpt, int argc, char *argv if (argc != optind) return usage(); + if (map_find(gpt, MAP_TYPE_PRI_GPT_HDR) == NULL) + printf("GPT not found, displaying data from MBR.\n\n"); + if (xshow & SHOW_ALL) return show_all(gpt);