diff options
Diffstat (limited to 'src/gpt.c')
-rw-r--r-- | src/gpt.c | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -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 |