blob: abaa4e60e0f04b1df6be299cb4e7be87bae18dc9 [file] [log] [blame]
.TH xfs_mkfile 8
.SH NAME
xfs_mkfile \- create an XFS file
.SH SYNOPSIS
.B xfs_mkfile
[
.B \-v
] [
.B \-n
] [
.B \-p
]
.I size\c
.RB [ k | b | m | g ]
.IR filename " ..."
.br
.B xfs_mkfile \-V
.SH DESCRIPTION
.B xfs_mkfile
creates one or more files. The file is padded with zeroes by default.
The default size is in bytes, but it can be
flagged as kilobytes, blocks, megabytes, or gigabytes with the
.BR k ,
.BR b ,
.BR m ,
or
.B g
suffixes, respectively.
.SH OPTIONS
.TP
.B \-v
Verbose. Report the names and sizes of created files.
.TP
.B \-n
No bytes. Create a holey file - that is, do not write out any data, just
seek to end of file and write a block.
.TP
.B \-p
Preallocate. The file is preallocated, then overwritten with zeroes,
then truncated to the desired size.
.TP
.B \-V
Prints the version number and exits.