*TYPE2 directories

The "root" (/), QOpenSys, and user-defined file systems (UDFS) in the integrated file system support the *TYPE2 directory format. The *TYPE2 directory format is an enhancement of the original *TYPE1 directory format.

Note: The concept of *TYPE1 and *TYPE2 stream files is different from the concept of *TYPE1 and *TYPE2 directory formats. One does not relate to the other.

*TYPE2 directories have a different internal structure and different implementation than *TYPE1 directories.

The advantages of *TYPE2 directories are:

*TYPE2 directories improve file system performance over *TYPE1 directories, especially when creating and deleting directories.

*TYPE2 directories are more reliable than *TYPE1 directories. After a system abnormally ends, *TYPE2 directories are completely recovered unless there has been an auxiliary storage failure. *TYPE1 directories may require the use of the Reclaim Storage (RCLSTG) command in order to recover completely.

*TYPE2 directories provide the following added functionality:

Typically, *TYPE2 directories that have fewer than 350 objects require less auxiliary storage than *TYPE1 directories with the same number of objects. *TYPE2 directories with more than 350 objects are ten percent larger (on average) than *TYPE1 directories.

There are several ways to get *TYPE2 directories on your system:

To determine the directory format for the file systems on your system, use the Convert Directory (CVTDIR) command:

CVTDIR OPTION(*CHECK)

Note: *TYPE2 directories are supported on OS/400 V5R2 or IBM i V5R3 or later, but there are some differences from normal *TYPE2 directory support.