summaryrefslogtreecommitdiff
path: root/gdisk.cc
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2009-08-29 15:00:31 -0400
committersrs5694 <srs5694@users.sourceforge.net>2009-08-29 15:00:31 -0400
commit221e08768de7fe42ba533ca22baf671420569c07 (patch)
tree64f0b26992dc4f1100ab57f5bc32351272e3c9d2 /gdisk.cc
parenta0eb11a64b4a5b78caff58f804a5fb78ddf3a5df (diff)
downloadsgdisk-221e08768de7fe42ba533ca22baf671420569c07.tar.gz
New release: 0.4.0
This version adds support for FreeBSD and big-endian systems. It also adds support for BSD disklabels and an assortment of other changes, improvements, and bug fixes.
Diffstat (limited to 'gdisk.cc')
-rw-r--r--gdisk.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/gdisk.cc b/gdisk.cc
index 428111c..5baf9fe 100644
--- a/gdisk.cc
+++ b/gdisk.cc
@@ -4,6 +4,9 @@
//
// by Rod Smith, February 2009
+/* This program is copyright (c) 2009 by Roderick W. Smith. It is distributed
+ under the terms of the GNU GPL version 2, as detailed in the COPYING file. */
+
//#include <iostream>
#include <stdio.h>
#include <string.h>
@@ -24,7 +27,7 @@ int main(int argc, char* argv[]) {
int doMore = 1;
char* device = NULL;
- printf("GPT fdisk (gdisk) version 0.3.5\n\n");
+ printf("GPT fdisk (gdisk) version 0.4.0\n\n");
if (argc == 2) { // basic usage
if (SizesOK()) {
@@ -65,9 +68,9 @@ int DoCommand(char* filename, struct GPTData* theGPT) {
fgets(line, 255, stdin);
sscanf(line, "%c", &command);
switch (command) {
-/* case 'b': case 'B':
- GetGUID();
- break; */
+ case 'b': case 'B':
+ theGPT->XFormDisklabel();
+ break;
case 'c': case 'C':
if (theGPT->GetPartRange(&temp1, &temp2) > 0)
theGPT->SetName(theGPT->GetPartNum());
@@ -125,6 +128,7 @@ int DoCommand(char* filename, struct GPTData* theGPT) {
} // DoCommand()
void ShowCommands(void) {
+ printf("b\tconvert BSD disklabel partitions\n");
printf("c\tchange a partition's name\n");
printf("d\tdelete a partition\n");
printf("i\tshow detailed information on a partition\n");