Alex Rivera | Logout

Is there an API to access the ZFS filesystem

Asked 2011-12-28T01:49:01.710
8

I would like to know if there is a way to access the ZFS api (preferably from python but C is fine too). My goal is to write some tools that will monitor my pools but would definitely like to not to have to parse output of zpool command.

Edit
Report

1 Answer

0

Well, it may not be a full answer but there is the libzfs library in /usr/lib. The strange thing is that headers for libzfs (zfs.h and etc.) aren't installed and only present in kernel sources.

So, if you need to develop something using libzfs, you may try to install kernel sources and include needed headers from there.

answered 2012-01-02T12:21:01.183

Your Answer