Make it clear when displaying data from the MBR.
This commit is contained in:
parent
f23b40fcf3
commit
487d107169
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user