aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpt.c
diff options
context:
space:
mode:
authorroot <root>2007-09-10 09:53:07 +0000
committerroot <root>2007-09-10 09:53:07 +0000
commit529b3f6fffd9ed9742009162077ea5c98325d2a9 (patch)
treeedee67eb0b8f16c7b6cb00ee662c1a34ac885fa5 /src/gpt.c
parent61c1751407b35ed4fe98d5e1e39608c7940349d2 (diff)
downloadgpt-529b3f6fffd9ed9742009162077ea5c98325d2a9.tar.gz
gpt-529b3f6fffd9ed9742009162077ea5c98325d2a9.tar.bz2
gpt-529b3f6fffd9ed9742009162077ea5c98325d2a9.zip
*** empty log message ***
Diffstat (limited to 'src/gpt.c')
-rw-r--r--src/gpt.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/gpt.c b/src/gpt.c
index 2f4aea2..1b93dc1 100644
--- a/src/gpt.c
+++ b/src/gpt.c
@@ -6,10 +6,13 @@
*
*/
-static char rcsid[] = "$Id: gpt.c,v 1.4 2007/09/09 22:30:05 root Exp $";
+static char rcsid[] = "$Id: gpt.c,v 1.5 2007/09/10 09:53:07 root Exp $";
/*
* $Log: gpt.c,v $
+ * Revision 1.5 2007/09/10 09:53:07 root
+ * *** empty log message ***
+ *
* Revision 1.4 2007/09/09 22:30:05 root
* *** empty log message ***
*
@@ -28,6 +31,13 @@ static char rcsid[] = "$Id: gpt.c,v 1.4 2007/09/09 22:30:05 root Exp $";
#include "project.h"
+void usage(void)
+{
+fprintf(stderr,
+"Usage:\n"
+"gpt disk-device [-l] [-e n] [-m n
+
+
int
main (int argc, char *argv[])
@@ -35,11 +45,11 @@ main (int argc, char *argv[])
DISK *d;
- d = disk_open ("/dev/sdb");
+ d = disk_open ("/dev/sda");
- //new(d);
- add (d, 1, "linux-ext3", 10 * 1024 * 2, 30 * 1024 * 2);
+ new(d);
+ add (d, 1, "linux-boot","linux-ext3", 10 * 1024 * 2, 30 * 1024 * 2);
show (d);
#if 0