lib/zfs.js
function snapshot(opts, cb) {
    "use strict";

    var params = [ 'snapshot' ];
    if (opts.recursive) {
        params.push('-r');
    }
    params.push(opts.dataset + '@' + opts.name);

    zfs(params, cb);
}
function snapshot(opts, cb) {
    "use strict";

    var params = [ 'snapshot' ];
    if (opts.recursive) {
        params.push('-r');
    }
    params.push(opts.dataset + '@' + opts.name);

    zfs(params, cb);
}
/*

Creates a snapshot with the given name.

PARAMS:
opts: {
name: string // the name of the snapshot (must exist)
dataset: string //the mountpoint of the snapshot (must exist)
recursive: boolean //if true the -r option is added to the zfs command (optional)
}