Source-Changes-HG archive

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

[src/trunk]: src/sbin/gpt Make it clear when displaying data from the MBR.



details:   https://anonhg.NetBSD.org/src/rev/af9787b1238e
branches:  trunk
changeset: 997285:af9787b1238e
user:      jnemeth <jnemeth%NetBSD.org@localhost>
date:      Sun Mar 03 03:20:42 2019 +0000

description:
Make it clear when displaying data from the MBR.

diffstat:

 sbin/gpt/show.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 4caecc834a2f -r af9787b1238e sbin/gpt/show.c
--- a/sbin/gpt/show.c   Sun Mar 03 02:28:14 2019 +0000
+++ b/sbin/gpt/show.c   Sun Mar 03 03:20:42 2019 +0000
@@ -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 @@
        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);
 



Home | Main Index | Thread Index | Old Index