]>
git.datanom.net - omvzfs.git/blob - src/Zvol.php
4 * XXX detailed description
10 class OMVModuleZFSZvol
{
30 * Mountpoint of the Zvol
32 * @var string $mountPoint
38 * Array with properties assigned to the Zvol
40 * @var array $properties
53 public function getName() {
54 trigger_error('Not Implemented!', E_USER_WARNING
);
63 public function getSize() {
64 trigger_error('Not Implemented!', E_USER_WARNING
);
73 public function getMountPoint() {
74 trigger_error('Not Implemented!', E_USER_WARNING
);
80 * @return list<Feature> XXX
83 public function getProperties() {
84 trigger_error('Not Implemented!', E_USER_WARNING
);
90 * @param $list<Feature> XXX
94 public function setProperties($properties) {
95 trigger_error('Not Implemented!', E_USER_WARNING
);
99 * Helper function to execute a command and throw an exception on error
100 * (requires stderr redirected to stdout for proper exception message).
102 * @param string $cmd Command to execute
103 * @param array &$out If provided will contain output in an array
104 * @param int &$res If provided will contain Exit status of the command
105 * @return string Last line of output when executing the command
106 * @throws OMVModuleZFSException
109 private function exec($cmd, &$out = null, &$res = null) {
110 $tmp = OMVUtil
::exec($cmd, $out, $res);
112 throw new OMVModuleZFSException(implode("\n", $out));
This page took 0.064448 seconds and 6 git commands to generate.