+ /**
+ * Create a Snapshot on commandline.
+ *
+ * @return void
+ * @access private
+ */
+ private function create() {
+ $cmd = "zfs snapshot " . $this->name . " 2>&1";
+ $this->exec($cmd,$out,$res);
+ $this->updateAllProperties();
+ }
+
+ /**
+ * Destroy a Snapshot on commandline.
+ *
+ * @return void
+ * @access public
+ */
+ public function destroy() {
+ $cmd = "zfs destroy " . $this->name . " 2>&1";
+ $this->exec($cmd,$out,$res);
+ }
+
+ /**
+ * Rollback a Snapshot on commandline.
+ *
+ * @return void
+ * @access public
+ */
+ public function rollback() {
+ $cmd = "zfs rollback " . $this->name . " 2>&1";
+ $this->exec($cmd,$out,$res);
+ }
+
+ /**
+ * Clones a Snapshot on commandline.
+ *
+ * @param string $newname
+ * @return void
+ * @access public
+ */
+ public function clonesnap($newname) {
+ $cmd = "zfs clone -p " . $this->name . " " . $newname . " 2>&1";
+ $this->exec($cmd,$out,$res);
+ }
+