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 373ff02..f13047e 100644
--- a/src/gpt.c
+++ b/src/gpt.c
@@ -6,10 +6,13 @@
*
*/
-static char rcsid[] = "$Id: gpt.c,v 1.23 2012/09/10 08:28:35 james Exp $";
+static char rcsid[] = "$Id: gpt.c,v 1.24 2013/09/14 08:54:25 james Exp $";
/*
* $Log: gpt.c,v $
+ * Revision 1.24 2013/09/14 08:54:25 james
+ * add lvm, raid, new ext3 to sync
+ *
* Revision 1.23 2012/09/10 08:28:35 james
* *** empty log message ***
*
@@ -133,7 +136,7 @@ main (int argc, char *argv[])
fprintf (stderr, "sizeof(off_t)=%d\n", sizeof (off_t));
- while ((c = getopt (argc, argv, "CQqd:hlsef:g:unac")) != EOF)
+ while ((c = getopt (argc, argv, "CQqd:hlsef:g:unacb:B:")) != EOF)
{
switch (c)
{
@@ -184,6 +187,14 @@ main (int argc, char *argv[])
e = entry_read (d, &h.header, n);
printf ("%lld\n", e.end);
return 0;
+ case 'b':
+ n = atoi (optarg);
+ set_flag (d, n,0);
+ return 0;
+ case 'B':
+ n = atoi (optarg);
+ set_flag (d, n,1);
+ return 0;
case 'g':
h = headers_get (d);
n = atoi (optarg);