InfoScale™ 9.0 Veritas File System Programmer's Reference Guide - Solaris
- Veritas File System software developer's kit
- File Change Log
- About the File Change Log file
- Record types
- File Change Log tunables
- Application programming interface for File Change Log
- API functions
- File Change Log record
- Copying File Change Log records
- Veritas File System and File Change Log upgrade and downgrade
- Reverse path name lookup
- Multi-volume support
- Named data streams
- Veritas File System I/O
- Caching advisories
- Extents
- Thin Reclamation
Include reservation in the file size
A reservation request can affect the size of the file to include the reservation amount by specifying VX_CHGSIZE. This flag increases the size of the file to match the reservation amount without zeroing the reserved space. Because the effect of this flag is uninitialized data in a file, which might have been previously contained in other files, the use of this flag is restricted to users with the appropriate privileges. Without this flag, the space of the reservation is not included in the file until an extending write operation requires the space. A reservation that immediately changes the file size can generate large temporary files. Applications can benefit from this type of reservation by eliminating the overhead that is imposed with write operations to allocate space and update the size of the file.
It is possible to use these flags in combination. For example, using VX_CHGSIZE and VX_NORESERVE changes the file size, but does not set any reservation. When the file is truncated, the space is freed. If the VX_NORESERVE flag is not used, the reservation is set on the disk along with the file size.