]> git.datanom.net - omvzfs.git/commitdiff
More info displayed for pools.
authorNiclas Berglind <nb@kjam.se>
Mon, 13 Oct 2014 19:34:40 +0000 (21:34 +0200)
committerMichael Rasmussen <mir@datanom.net>
Mon, 13 Oct 2014 22:41:40 +0000 (00:41 +0200)
Signed-off-by: Niclas Berglind <nb@kjam.se>
gui/rpc/zfs.inc

index bbab27ca3824b961d5dc8136ab5cc2406dd5e62a..ead4ee52ce98734254c550b3aff6c561a55d9985 100644 (file)
@@ -511,8 +511,18 @@ class OMVRpcServiceZFS extends OMVRpcServiceAbstract {
                        $cmd = "zfs get all {$params['name']}";
                        break;
                case "Pool":
                        $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']}";
                        $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");
                        break;
                default:
                        throw new OMVModuleZFSException("Incorrect type provided");
This page took 0.032647 seconds and 5 git commands to generate.