Next | Prev | Up | Top | Contents | Index

Real-Time Subvolumes

Files created on the real-time subvolume of an XLV logical volume are known as real-time files. The next three sections describe the special characteristics of these files.


Files on the Real-Time Subvolume and Commands

Real-time files have some special characteristics that cause standard IRIX commands to operate in ways that you might not expect. In particular:


File Creation on the Real-Time Subvolume

To create a real-time file, use the F_FSSETXATTR fcntl() system call with the XFS_XFLAG_REALTIME bit set in the fsx_xflags field of the fsxattr structure. This must be done after the file has first been created/opened for writing, but before any data has been written to the file. Once data has been written to a file, the file cannot be changed from a standard data file to a real-time file, nor can files created as real-time files be changed to standard data files.

Real-time files can only be read or written using direct I/O. Therefore, read() and write() system call operations to a real-time file must meet the requirements specified by the F_DIOINFO fcntl() system call. See the open(2) reference page for a discussion of the O_DIRECT option to the open() system call.


Guaranteed-Rate I/O and the Real-Time Subvolume

The real-time subvolume is used by applications for files that require fixed I/O rates. This feature, called guaranteed-rate I/O, is described in Chapter 9, "System Administration for Guaranteed-Rate I/O."


Next | Prev | Up | Top | Contents | Index