The following example creates a file named
file1 and preallocates 2 GB of disk space for the file.
To set an extent attribute
# touch file1
# setext -t 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.