$this->size = $this->properties["volsize"]["value"];
}
+ /**
+ * Destroy the Zvol.
+ *
+ * @return void
+ * @access public
+ */
+ public function destroy() {
+ $cmd = "zfs destroy " . $this->name;
+ $this->exec($cmd,$out,$res);
+ }
+
/**
* Helper function to execute a command and throw an exception on error
* (requires stderr redirected to stdout for proper exception message).