libzfs ~master

Bindings for libzfs


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

Pre-alpha semi-automatically generated bindings for libzfs.

Use at your own risk.

I plan on cleaning this up in time, and later writing higher-level wrapper.

import libzfs;
import std.stdio;
import std.string;
import std.exception:enforce;

enum Pool = "tank";

void main(string[] args)
{
    auto zfs = libzfs_init();
    enforce(zfs !is null,"unable to initialise ZFS library");
    auto pool = zpool_open_canfail(zfs, Pool.ptr);
    enforce(pool !is null,"pool "~ Pool ~ "not found");
}
Authors:
  • Laeeth Isharc
Dependencies:
none
Versions:
0.0.1 2018-Apr-02
~master 2018-Apr-02
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 16 downloads total

Score:
0.7
Short URL:
libzfs.dub.pm