nl_tokens: / *
pl_tokens: function create ( opts , cb ) { // "use strict" ; var params = [ 'create' , '-f' ] ; /*
       immediately add some options to the create procedure
       done by adding argument -o option=value
       the opts.options parameter is an array of objects, or a single object
  
       opts.options = { property: String, value: String }
  
       OR:
  
       opts.options = [ { property: String, value: String }, { property: String, value: String } ]
  
       */ if ( opts . options ) { if ( opts . options . length ) { //opts.options is an array for ( var x = 0 ; x < opts . options . length ; x ++ ) { params . push ( '-o' , opts . options [ x ] . property + "=" + opts . options [ x ] . value ) ; } } else { //opts.options is a single object params . push ( '-o' , opts . <mask> . property + "=" + opts . options . value ) ; } } if ( opts . mountpoint ) { params . push ( '-m' , opts . mountpoint ) ; } params . push ( opts . name ) ; if ( opts . devices . length ) { params = params . concat ( opts . devices ) ; } else { var devices = opts . devices . split ( / \s+ / ) ; params = params . concat ( devices ) ; } zpool ( params , cb ) ; }