Example of setting an extent attribute

The following example creates a file named file1 and preallocates 2 GB of disk space for the file.

To set an extent attribute

  1. Create the file file1:

      # touch file1
  2. Preallocate 2 GB of disk space for the file 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.