Home > Veritas Storage Foundation™ File System Manual Pages
setext -r reservation [ -V vxfs ] [ -f flags ] filename
You can specify multiple flags by entering multiple instances of -f on the command line.
You can only specify the allocation flags with either the -e or -r option.
For the -e or -r options, you can specify the size in number of file system blocks or in bytes. A numeric value specifies file system blocks, while a numeric value with a suffix specifies the size in blocks or bytes: b for 512-byte blocks, k for kilobytes, m for megabytes, g for gigabytes, or t for terabytes.
In some cases, fsadm may reorganize the extent map of a file in such a way as to make it less contiguous. However, it does not change the geometry of a file that has a fixed extent size.
- -e extent_size
- Specifies a fixed extent size. extent_size is either the number of file system blocks, or the size in bytes to allocate for the extent (see NOTES). A value of zero cancels any previous settings for fixed-size extents for the file and uses the default extent allocation policy. See the vxtunefs(1M) manual page for information on extent size parameters.
- -f flags
- The available allocation flags are:
- Specifies that all extents must be aligned on extent_size boundaries relative to the start of allocation units.
- 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. The space added to the file is not initialized. Only users with root privileges can use the -f chgsize option.
- Specifies that the reservation must be allocated contiguously.
- Specifies that the file may not be extended after the preallocated space is used.
- Specifies that the reservation is not a persistent attribute of the file. Instead, the space is allocated until the final close of the file, when space not used by the file is freed. The temporary reservation is not visible to the user (via getext or the VX_GETEXT ioctl, for example).
- Specifies that the reservation is reduced to the current file size after the last close by all processes that have the file open.
- -r reservation
- Preallocates space for a file. You can specify the reservation in number of file system blocks or the actual size in bytes (see DESCRIPTION).
- -V vxfs
- Specifies the VxFS file system type.
# touch abc # setext -t vxfs -r 100M -f chgsize abc
Last updated: 01 April 2006
Copyright ©2009 Symantec Corporation
All rights reserved.