Changeset 904b1bc in mainline for uspace/app/mkmfs/mkmfs.c
- Timestamp:
- 2018-05-22T10:36:58Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a4eb3ba2
- Parents:
- 4f8772d4
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-21 17:36:30)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-22 10:36:58)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkmfs/mkmfs.c
r4f8772d4 r904b1bc 98 98 99 99 static struct option const long_options[] = { 100 101 102 103 104 105 106 100 { "help", no_argument, 0, 'h' }, 101 { "long-names", no_argument, 0, 'l' }, 102 { "block-size", required_argument, 0, 'b' }, 103 { "inodes", required_argument, 0, 'i' }, 104 { NULL, no_argument, 0, '1' }, 105 { NULL, no_argument, 0, '2' }, 106 { 0, 0, 0, 0 } 107 107 }; 108 108 … … 495 495 496 496 if (sb->fs_version == 3) { 497 if (INT32_MAX / sb->block_size < zones)497 if (INT32_MAX / sb->block_size < zones) 498 498 sb->max_file_size = INT32_MAX; 499 499 sb->ino_per_block = V3_INODES_PER_BLOCK(sb->block_size); … … 730 730 { 731 731 if (level == HELP_SHORT) { 732 printf(NAME ": tool to create new Minix file systems\n");732 printf(NAME ": tool to create new Minix file systems\n"); 733 733 } else { 734 734 printf("Usage: [options] device\n" … … 737 737 "-b ## Specify the block size in bytes (V3 only),\n" 738 738 " valid block size values are 1024, 2048 and" 739 739 /* ... */ " 4096 bytes per block\n" 740 740 "-i ## Specify the number of inodes" 741 741 /* ... */ " for the filesystem\n" 742 742 "-l Use 30-char long filenames (V1/V2 only)\n"); 743 743 }
Note:
See TracChangeset
for help on using the changeset viewer.