Changes in uspace/app/mkext4/mkext4.c [91fcbabc:6abdef37] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkext4/mkext4.c
r91fcbabc r6abdef37 56 56 aoff64_t nblocks; 57 57 const char *label = ""; 58 unsigned int bsize = 1024;59 58 60 59 cfg.version = ext4_def_fs_version; … … 80 79 81 80 nblocks = strtol(*argv, &endptr, 10); 82 if (*endptr != '\0') {83 printf(NAME ": Error, invalid argument.\n");84 syntax_print();85 return 1;86 }87 88 --argc;89 ++argv;90 continue;91 }92 93 if (str_cmp(*argv, "--bsize") == 0) {94 --argc;95 ++argv;96 if (*argv == NULL) {97 printf(NAME ": Error, argument missing.\n");98 syntax_print();99 return 1;100 }101 102 bsize = strtol(*argv, &endptr, 10);103 81 if (*endptr != '\0') { 104 82 printf(NAME ": Error, invalid argument.\n"); … … 181 159 182 160 cfg.volume_name = label; 183 cfg.bsize = bsize;184 161 (void) nblocks; 185 162 … … 201 178 "\t--size <sectors> Filesystem size, overrides device size\n" 202 179 "\t--label <label> Volume label\n" 203 "\t--type <fstype> Filesystem type (ext2, ext2old)\n" 204 "\t--bsize <bytes> Filesystem block size in bytes (default = 1024)\n"); 180 "\t--type <fstype> Filesystem type (ext2, ext2old)\n"); 205 181 } 206 182
Note:
See TracChangeset
for help on using the changeset viewer.