diff options
author | root <root> | 2007-09-10 09:53:07 +0000 |
---|---|---|
committer | root <root> | 2007-09-10 09:53:07 +0000 |
commit | 529b3f6fffd9ed9742009162077ea5c98325d2a9 (patch) | |
tree | edee67eb0b8f16c7b6cb00ee662c1a34ac885fa5 /src/gpt.c | |
parent | 61c1751407b35ed4fe98d5e1e39608c7940349d2 (diff) | |
download | gpt-529b3f6fffd9ed9742009162077ea5c98325d2a9.tar.gz gpt-529b3f6fffd9ed9742009162077ea5c98325d2a9.tar.bz2 gpt-529b3f6fffd9ed9742009162077ea5c98325d2a9.zip |
*** empty log message ***
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 |