Product SiteDocumentation Site

4.13. mkfs - Prototype Filesystem

The -p option to mkfs allows you to specify a prototype file
The prototype file lists inodes and their metadata that mkfs will add to the filesystem when it is created
Since the filesystem is not mounted at this time no logging is required, so mkfs can create millions of inodes at a much faster rate than on a live filesystem
This is mainly used for testing XFS when lots of inodes are required