is used to create a nilfs2 filesystem (usually in a disk partition).
device is the special file corresponding to the device (e.g.
/dev/sdXX). Usually mkfs.nilfs2 is invoked from the
mkfs(8) front-end program.
The exit code returned by
is 0 on success and 1 on failure.
Specify the size of blocks in bytes. The valid block size is 1024,
2048, 4096, 8192 bytes, ..., and the maximum block size is restricted
to the system page size. For most machines, it is 4096 bytes. The
default block size is 4096 bytes.
Specify the number of blocks in a segment, where the segment (also
called full segment) is an allocation unit of disk space of NILFS.
This parameter gives the size of segment and consequently determines
how many segments are aligned in the specified device. The default
number of blocks per segment is 2048 (= 8MB with 4KB blocks).
Check the device for bad blocks before building the filesystem.
Set the volume label for the filesystem to
The maximum length of the volume label is 16 bytes.
Specify the percentage of the segments reserved for garbage
collection. The default percentage is 5%.
to not actually create a filesystem, but display
what it would be do if it were to create a filesystem.
Quiet execution. Useful if
is run in a script.
Print the version number of
This version of
has been written by Ryusuke Konishi <firstname.lastname@example.org>.