Information Library for Solaris 2.6 (Intel Platform Edition)

Large Files Support

The Solaris operating environment now supports files larger than approximately 2 Gbytes. New interfaces are provided to operate on large files for developers who want to do asynchronous I/O to large files.

Large Files

The large files project supports files that are larger than or equal to 2 Gbytes. Large file semantics are supported on UFS, NFS, and CacheFS file systems. Applications are able to create and access files up to

Existing file I/O interfaces have been modified to detect an error when they are used with a large file. New data types (most with suffixes of 64 or 64_t) and new interfaces (most with suffixes of 64) are provided to operate on large files.

New mount Option

A new mount option is available to disable the large-file support on UFS file systems. This gives the system administrator a way to ensure that older applications that are not able to safely handle large files will continue to work.

The default mount option is largefiles. The largefiles option means that a file system mounted with this option allows creation of files larger than or equal to 2 Gbytes.

A file system mounted with this option does not have to contain files larger than 2 Gbytes.

Once a file system has been mounted with the largefiles option, if a large file has been created in that file system, it cannot be remounted with the nolargefiles option until the fsck command is run to confirm the absence of large files.

Large Files and Applications

An existing application running on Solaris 2.x software should be checked for the following points:

For more information, see NFS Administration Guide and System Administration Guide.

64-Bit AIO

The Solaris operating environment provides a new set of interfaces for developers who want to do asynchronous I/O to large files. The following interfaces accept 64-bit AIO:

The following interfaces exist, but are not supported:

These interfaces also work with KAIO. KAIO is the optimized path for doing I/O to raw files. When using the interfaces with KAIO to raw files, there is a significant performance improvement.

The Solaris operating environment supports another set of AIO interfaces that pre-dates POSIX. These interfaces have also been updated for large file support: