summaryrefslogtreecommitdiff
path: root/gdisk.cc
diff options
context:
space:
mode:
authorsrs5694 <srs5694@users.sourceforge.net>2009-09-14 00:29:34 -0400
committersrs5694 <srs5694@users.sourceforge.net>2009-09-14 00:29:34 -0400
commite35eb1beb6381977ff0dd8443d91f4569779cf2d (patch)
tree79e12635671049dfaca818827e3458fbadff0b1c /gdisk.cc
parente4ac11ebee0ad586a538f49b9c0e32ad19cae665 (diff)
downloadsgdisk-e35eb1beb6381977ff0dd8443d91f4569779cf2d.tar.gz
Updates for version 0.4.2
New feature: Ability to edit disk images. Several small bug fixes and feature enhancements (see CHANGELOG).
Diffstat (limited to 'gdisk.cc')
-rw-r--r--gdisk.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/gdisk.cc b/gdisk.cc
index ad2f51b..dcc2c51 100644
--- a/gdisk.cc
+++ b/gdisk.cc
@@ -27,7 +27,7 @@ int main(int argc, char* argv[]) {
int doMore = 1;
char* device = NULL;
- printf("GPT fdisk (gdisk) version 0.4.1\n\n");
+ printf("GPT fdisk (gdisk) version 0.4.2\n\n");
if (argc == 2) { // basic usage
if (SizesOK()) {
@@ -90,9 +90,12 @@ int DoCommand(char* filename, struct GPTData* theGPT) {
theGPT->CreatePartition();
break;
case 'o': case 'O':
- theGPT->ClearGPTData();
- theGPT->MakeProtectiveMBR();
-// theGPT->BlankPartitions();
+ printf("This option deletes all partitions and creates a new "
+ "protective MBR.\nProceed? ");
+ if (GetYN() == 'Y') {
+ theGPT->ClearGPTData();
+ theGPT->MakeProtectiveMBR();
+ } // if
break;
case 'p': case 'P':
theGPT->DisplayGPTData();