Installing the zfcp HBA API library
You need several packages to use the zfcp HBA API library.
Before you begin
- libzfcphbaapi-<x>.tar.gz, the zfcp HBA API library. In the library name, <x> represents the newest available version.
- The libsysfs-2.1 package, a library interface to sysfs.
- The sg_utils package, a utility for devices that use SCSI commands.
- The doxygen package, optional for documentation.
About this task
You can build the library using the SNIA library or as a standalone version.
Should you want to build the library using the SNIA library, you need to pass command line option --enable-vendor-lib when running the configure tool.
Should you want to build a stand-alone version you need to pass the command line option --disable-vendor-lib when running the configure tool.
Procedure
Perform the following steps to install the library:
Results
You have installed:
- Shared and static versions of libzfcphbaapi at /usr/local/lib.
- If you built a stand-alone version, the header file hbaapi.h at /usr/local/include.
- Optionally, the documentation package at /usr/local/share/zfcp-hbaapi-<x>..
If you have built the vendor library with the SNIA library, there are two entry points:
- HBA_RegisterLibrary, used if SNIA V1 was installed.
- HBA_RegisterLibraryV2, used if SNIA V2 was installed.
Note: The exact contents of the library depends on the version, see API provided by the zfcp HBA API support.