The following example creates a file named file1
and preallocates 2 GB of disk space for the file.
To set an extent attribute
file1
:# touch file1
file1
:# setext -F vxfs -r 2g -f chgsize file1
Since the example specifies the -f chgsize option, VxFS immediately incorporates the reservation into the file and updates the file's inode with size and block count information that is increased to include the reserved space. Only users with root privileges can use the -f chgsize option.