From: Niclas Berglind Date: Mon, 13 Oct 2014 19:34:40 +0000 (+0200) Subject: More info displayed for pools. X-Git-Url: http://git.datanom.net/omvzfs.git/commitdiff_plain/a238c1a16ee1162aa28919ea82d20b83a69c03c1 More info displayed for pools. Signed-off-by: Niclas Berglind --- diff --git a/gui/rpc/zfs.inc b/gui/rpc/zfs.inc index bbab27c..ead4ee5 100644 --- a/gui/rpc/zfs.inc +++ b/gui/rpc/zfs.inc @@ -511,8 +511,18 @@ class OMVRpcServiceZFS extends OMVRpcServiceAbstract { $cmd = "zfs get all {$params['name']}"; break; case "Pool": - $output .= "Pool details (zpool get all):\n\r\n\r"; + $output .= "Pool status (zpool status):\n\r\n\r"; + $cmd = "zpool status {$params['name']}"; + OMVModuleZFSUtil::exec($cmd,$out,$res); + $output .= implode("\n\r", $out); + unset($out); + $output .= "\n\r\n\rPool details (zpool get all):\n\r\n\r"; $cmd = "zpool get all {$params['name']}"; + OMVModuleZFSUtil::exec($cmd,$out,$res); + $output .= implode("\n\r", $out); + unset($out); + $output .= "\n\r\n\rPool filesystem details (zfs get all):\n\r\n\r"; + $cmd = "zfs get all {$params['name']}"; break; default: throw new OMVModuleZFSException("Incorrect type provided");