]> git.datanom.net - omvzfs.git/blobdiff - src/Zvol.php
Removed unused icons.
[omvzfs.git] / src / Zvol.php
index fb86eeb4715b6e43b01031918c8a64fa3c000d7c..e35af5ab0e8c874b424519696b550e98d0b43c6c 100644 (file)
@@ -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.
         * 
This page took 0.046281 seconds and 5 git commands to generate.