libzfs 0.0.1

Bindings for libzfs


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

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

  • 1 downloads total

Score:
0.3
Short URL:
libzfs.dub.pm