lib/zpool.js
function add (opts, cb) {
    "use strict";

    var params = [ 'add', '-f' ];

    params.push(opts.name);

    //devices is an array or a string of devices
    if (opts.devices.length) {
        params = params.concat(opts.devices);
    } else {
        var devices = opts.devices.split(/\s+/);
        params = params.concat(devices);
    }

    zpool(params, cb);
}
function add (opts, cb) {
    "use strict";

    var params = [ 'add', '-f' ];

    params.push(opts.name);

    //devices is an array or a string of devices
    if (opts.devices.length) {
        params = params.concat(opts.devices);
    } else {
        var devices = opts.devices.split(/\s+/);
        params = params.concat(devices);
    }

    zpool(params, cb);
}
/*

Adds the specified virtual devices to the given pool.

PARAMS:
opts: {
name: String, //Must exist, the name of the pool to which to add the device
devices: String or Array //Must exist, a list of devices to add to the given pool.
}