ext4_journal: do not replay revoked block within the same transaction
[lwext4.git] / fs_test / lwext4_mkfs.c
index aa7e1ef2b294e3574282b071d054daf588337350..7579c8d05ff85bd4dc42dc9bf3bc0bcb62f8a9c4 100644 (file)
@@ -116,9 +116,10 @@ static bool parse_opt(int argc, char **argv)
            {"ext", required_argument, 0, 'e'},
            {"wpart", no_argument, 0, 'w'},
            {"verbose", no_argument, 0, 'v'},
+           {"version", no_argument, 0, 'x'},
            {0, 0, 0, 0}};
 
-       while (-1 != (c = getopt_long(argc, argv, "i:b:e:wv",
+       while (-1 != (c = getopt_long(argc, argv, "i:b:e:wvx",
                                      long_options, &option_index))) {
 
                switch (c) {
@@ -137,6 +138,10 @@ static bool parse_opt(int argc, char **argv)
                case 'v':
                        verbose = true;
                        break;
+               case 'x':
+                       puts(VERSION);
+                       exit(0);
+                       break;
                default:
                        printf("%s", usage);
                        return false;