Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: main.cpp
- ===================================================================
- --- main.cpp (revision 119)
- +++ main.cpp (working copy)
- @@ -84,6 +84,7 @@
- {"nocheck", no_argument, NULL, 'c'},
- {"nodesc", no_argument, NULL, 'd'},
- {"erase", no_argument, NULL, 'e'},
- + {"filesystem", required_argument, NULL, 'F'},
- {"finish", required_argument, NULL, 'f'},
- {"debug", required_argument, NULL, 'g'},
- {"help", no_argument, NULL, 'h'},
- @@ -110,7 +111,7 @@
- static char finish_last_countfile_lock[]="/tmp/partimageXXXXXX.lock";
- static char finish_last_countfile[]="/tmp/partimageXXXXXX";
- -static char optstring[]="z:oV:ecmdhf:s:p:bwg:vyLnSMa:iU:P:XB:";
- +static char optstring[]="z:oV:ecmdhf:s:p:bwg:vyLnSMa:iU:P:XB:F:";
- FILE * g_fDebug; // debug file
- FILE * g_fLocalDebug; // debug file
- CInterface * g_interface;
- @@ -277,6 +278,19 @@
- return EXIT_FAILURE;
- }
- break;
- +
- + case 'F': // get filesystem
- + detectFileSystem(optarg, szFileSystem);
- + fprintf(stdout, i18n("File system: %s\n"), szFileSystem);
- + if(isFileSystemSupported(szFileSystem) == true)
- + {
- + fprintf(stdout, i18n("Supported: yes\n"));
- + }
- + else
- + {
- + fprintf(stdout, i18n("Supported: no\n"));
- + }
- + return EXIT_SUCCESS;
- case 'f': // what to do when finished successfully ?
- options.dwFinish = atol(optarg);
- @@ -1022,6 +1036,7 @@
- "* -h, --help show help\n"
- "* -v, --version show version\n"
- "* -i, --compilinfo show compilation options used\n"
- + "* -FX, --filesystem show filesystem for partition X\n"
- "* -f, --finish (action to do if finished successfully):\n"
- " -f0, --finish=0 wait: don't make anything\n"
- " -f1, --finish=1 halt: power off the computer\n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement