diff options
author | srs5694 <srs5694@users.sourceforge.net> | 2009-09-14 00:29:34 -0400 |
---|---|---|
committer | srs5694 <srs5694@users.sourceforge.net> | 2009-09-14 00:29:34 -0400 |
commit | e35eb1beb6381977ff0dd8443d91f4569779cf2d (patch) | |
tree | 79e12635671049dfaca818827e3458fbadff0b1c /gdisk.cc | |
parent | e4ac11ebee0ad586a538f49b9c0e32ad19cae665 (diff) | |
download | sgdisk-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.cc | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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(); |