• Nate Clark's avatar
    disk-utils/mkfs.minix: Set ninodes after checking max · 01f963c2
    Nate Clark authored
    ninodes in the superblock needs to be set after inodes is checked
    against MINIX_MAX_INODES otherwise a value larger than MINIX_MAX_INODES
    can be attempted to be stored in the superblock.
    
    Without this change the command "mkfs.minix -2 -i 65530 <dev>" would
    write a minix superblock with ninodes set to 0.
    Signed-off-by: 's avatarNate Clark <nate@neworld.us>
    01f963c2
mkfs.minix.c 23.3 KB