aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpt.c')
-rw-r--r--src/gpt.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/gpt.c b/src/gpt.c
index 1f6c96f..b81964d 100644
--- a/src/gpt.c
+++ b/src/gpt.c
@@ -6,10 +6,13 @@
*
*/
-static char rcsid[] = "$Id: gpt.c,v 1.11 2007/10/17 09:51:42 james Exp $";
+static char rcsid[] = "$Id: gpt.c,v 1.12 2007/11/12 13:28:04 james Exp $";
/*
* $Log: gpt.c,v $
+ * Revision 1.12 2007/11/12 13:28:04 james
+ * *** empty log message ***
+ *
* Revision 1.11 2007/10/17 09:51:42 james
* *** empty log message ***
*
@@ -68,6 +71,9 @@ fprintf(stderr,
"gpt -d disk-device -a n name type start end\n"
" set partiton n, type can either be a named\n"
" type or a hexadecimal GUID\n"
+"gpt -d disk-device -c fill the PMBR with entries taken from\n"
+" the first few GPT entries, using dark\n"
+" voodoo\n"
);
exit(1);
}
@@ -87,7 +93,7 @@ main (int argc, char *argv[])
extern int optind;
- while ((c=getopt(argc,argv,"d:hlsef:una"))!=EOF) {
+ while ((c=getopt(argc,argv,"d:hlsef:unac"))!=EOF) {
switch(c) {
case 'd':
d=disk_open(optarg);
@@ -129,6 +135,11 @@ main (int argc, char *argv[])
if (!d) usage();
show(d);
return 0;
+ case 'c':
+ if (!d) usage();
+ sync_tables(d);
+ //show(d);
+ return 0;
default:
usage();
}