Solaris Tunable Parameters Reference Manual

nfsserv:nfs_shrinkreaddir

Description

Due to a bug in the NFS version 2 server implementation, some older NFS servers can not correctly handle NFS Version 2 READDIR requests for more than 1024 bytes of directory information in certain situations. This parameter provides a workaround in the NFS Version 2 client.

If this parameter is enabled, the client does not generate a READDIR request for larger than 1024 bytes of directory information.

If this parameter is disabled, the over the wire size is set to the minimum of either the size passed in by the getdents(2) system call or NFS_MAXDATA, which is 8192 bytes.

Data Type

32–bit integer

Default

0 (disabled)

Range

0 (disabled), 1 (enabled)

Units

Boolean values

Dynamic?

Yes

Validation

None

When to Change

Examine the value of this parameter when using an older NFS Version 2 only server and interoperability problems occur when trying to read directories. Enabling this parameter might cause a slight performance drop to occur for applications that read directories.

Stability Level

Evolving