[osv-dev] [PATCH 2/2] zfs: extract zfs code as optional libsolaris.so

2021-12-15 Thread Waldemar Kozaczuk
Originally I thought that extracting ZFS out of the kernel as a shared library would not be as easy as it it has turned out to be. Obviously after figuring couple of important gotchas which I describe below and in the code comments. The advantages of moving ZFS to a separate library are

[osv-dev] [PATCH 1/2] zfs: expose some symbols in solaris part of bsd code

2021-12-15 Thread Waldemar Kozaczuk
This patch annotates ~90 symbols with explicit public visibility across various parts of ZFS or related code in the bds/ subtree. This is in preparation of the next patch that extracts ZFS code into a separate libsolaris.so library where all symbols but the ones marked as public here. These