我要评分
获取效率
正确性
完整性
易理解

Using the KAEZlib Library

This section provides methods of using 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 Installation Using Source Code or Installation 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.

  • Set the following environment variable:
    1
    export LD_LIBRARY_PATH=/usr/local/kaezip/lib:$LD_LIBRARY_PATH