The following enhancements to the fstyp command are new in the Solaris Express 8/06 release.
Starting with this release, the fstyp command has a new option, -a, which displays the file system attributes in a consistent, name-value pair format. This command also supports DOS logical drive numbers. For example:
# fstyp /dev/dsk/c0t0d0p0:1 |
For more information, see the fstyp(1M) man page.
The following fstyp enhancements are also available starting with this release:
Most of the fstyp functionality is now available to applications as a library API. For more information, see the libfstyp(3LIB) man page and the 3FSTYP man page section.
The fstyp script is now a binary that calls into libfstyp(3LIB) man page and the 3FSTYP man page section. Existing /usr/lib/fs/*/fstyp back ends have been converted to libfstyp(3LIB) man page and the 3FSTYP modules /usr/lib/fs/*/fstyp.so.1. The /usr/lib/fs/*/fstyp back ends are still available as links to /usr/sbin/fstyp.
For backward compatibility, fstyp calls a legacy back end if an fstyp.so.1 module is not found. Vendors are encouraged to convert their back ends to the new interface. For more information, see fstyp_mod_init(3FSTYP).