From a238c1a16ee1162aa28919ea82d20b83a69c03c1 Mon Sep 17 00:00:00 2001 From: Niclas Berglind Date: Mon, 13 Oct 2014 21:34:40 +0200 Subject: [PATCH] More info displayed for pools. Signed-off-by: Niclas Berglind --- gui/rpc/zfs.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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"); -- 2.39.5