With the 10.20 ACE and HWE, the NFS Services include the following,
which were not part of the original 10.20 NFS Services:
The Compatibility Switch |
 |
The 10.20 ACE and HWE include a system-wide compatibility
switch to control the behavior of certain file system APIs.The behavior
of the stat(), statfs(),
and statvfs() functions is affected.
The fstat(), fstatfs(),
and fstatvfs() functions are affected
as well, by virtue of the fact that they use the stat(),
statfs(), and statvfs()
functions.
If the switch is in compatibility mode (compatible with the
original 10.20 system behavior, which is the default), return values
from the stat(), statfs(),
and statvfs() system calls are
unaffected. With the switch in non-compatibility mode, these calls
return different values in the st_fstype
field of the stat structure returned
by stat(), the f_fsid
field of the statfs structure returned
by statfs(), or the f_fsid
or f_fsindex field of the statvfs
structure returned by statvfs().
The values returned are appropriate to the type of file system
being queried. Calls to sysfs()
with these values will return nfs
for NFS Version 2 file systems, nfs3
for NFS Version 3 file systems, autofs
for unmounted file systems being monitored by AutoFS, and cachefs
for CacheFS mounts. (CacheFS file systems normally return the value
of the underlying mount, except for the f_basetype
value in the statvfs structure,
which will contain the value cachefs
for the CacheFS file system.)
To set the switch to compatibility mode (the default), type
the following:
To set the switch to non-compatibility mode, type the following:
For more information, see the onccompat(1M)
man page.
The compatibility switch is available only on the 10.20 ACE
and HWE. HP-UX 10.30 and 11.0 already implement the non-compatible
behavior.