X-Git-Url: http://git.datanom.net/omvzfs.git/blobdiff_plain/67b3738d3d9a7cd2befda8b695411383015a481d..da22577f5417be015c11b6325bfa69997d6417d4:/src/Zvol.php?ds=sidebyside 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. *