nl_tokens: / *
pl_tokens: function list ( opts , cb ) { "use strict" ; if ( typeof opts === 'function' ) { cb = opts ; opts = undefined ; } var params = [ 'list' , '-H' ] ; if ( opts && opts . type ) { params . push ( '-t' ) ; params . push ( opts . type ) ; } if ( opts && opts . sort ) { params . push ( '-s' ) ; params . push ( opts . sort ) ; } if ( opts && opts . recursive ) { params . push ( '-r' ) ; } if ( opts && opts . <mask> ) { params . push ( opts . name ) ; } zfs ( params , function ( err , stdout ) { if ( cb && typeof cb === 'function' ) { if ( err ) { cb ( err ) ; return ; } var lines = util . compact ( stdout . split ( '\n' ) ) ; var list = lines . map ( function ( x ) { return new ZFS ( x ) ; } ) ; cb ( err , list ) ; } } ) ; }