+ /**
+ * Craete a Dataset on commandline. Optionally provide a number of properties to set.
+ *
+ * @param array $properties Properties to set when creating the dataset.
+ * @return void
+ * @access public
+ */
+ public function create(array $properties = null) {
+ $cmd = "zfs create -p " . $this->name . " 2>&1";
+ $this->exec($cmd,$out,$res);
+ $this->updateAllProperties();
+ $this->setProperties($properties);
+ $this->mountPoint = $this->properties["mountpoint"]["value"];
+ }
+
+