Using the KAEZlib Library
This section provides use cases and methods of the KAEZlib compression library in distributed storage scenarios.
After the hisi_zip kernel module, warpdrive user-mode driver, and zlib library are installed as in Installing KAE Using Source Code, you can use either of the following methods to link the zlib compression library to the application layer:
- Specify the location for loading libz.so for the application layer during compilation. The following compilation options are used for linking:
1-Wl,-rpath=/usr/local/kaezip/lib/usr/local/kaezip/lib is an example path of the newly installed zlib library.
For details, see:
- Set the following environment variable:
1export LD_LIBRARY_PATH=/usr/local/kaezip/lib:$LD_LIBRARY_PATH
Parent topic: Application Cases