X-Git-Url: http://git.datanom.net/omvzfs.git/blobdiff_plain/67b3738d3d9a7cd2befda8b695411383015a481d..8c2944eca424e9116455551293e343eaa4cda9e6:/src/Zvol.php diff --git a/src/Zvol.php b/src/Zvol.php index fb86eeb..e35af5a 100644 --- a/src/Zvol.php +++ b/src/Zvol.php @@ -121,6 +121,20 @@ class OMVModuleZFSZvol { return $this->size; } + /** + * Get all Snapshots associated with the Zvol + * + * @return array $snapshots + * @access public + */ + public function getSnapshots() { + if (isset($this->snapshots)) { + return $this->snapshots; + } else { + return array(); + } + } + /** * Sets a number of Zvol properties. If a property is already set it will be updated with the new value. *