From a476aba5b0368c3bc649db319ee748ae410144d9 Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Mon, 27 Feb 2012 12:41:24 +0530 Subject: cli, glusterd, nfs: "volume status|profile|top" for nfs servers Enables usage of volume monitoring operations "volume status", "volume top" and "volume profile" for nfs servers. These operations can be performed on nfs-servers by passing "nfs" as an option in cli. The output is similar to the normal brick outputs for these commands. The new syntaxes for the changed commands are as below, #gluster volume profile {start|info|stop} [nfs] #gluster volume top {[open|read|write|opendir|readdir [nfs]] |[read-perf|write-perf [nfs|{bs count }]]} [brick ] [list-cnt ] #gluster volume status [all | [nfs|]] [detail|clients|mem|inode|fd|callpool] Change-Id: Ia6eb50c60aecacf9b413d3ea993f4cdd90ec0e07 BUG: 795267 Signed-off-by: Kaushal M Reviewed-on: http://review.gluster.com/2820 Tested-by: Gluster Build System Reviewed-by: Krishnan Parthasarathi --- cli/src/cli-cmd-volume.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/src/cli-cmd-volume.c') diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index 6b9c0b03f..9546831ab 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -1804,7 +1804,7 @@ struct cli_cmd volume_cmds[] = { cli_cmd_check_gsync_exists_cbk}, #endif - { "volume profile {start|info|stop}", + { "volume profile {start|info|stop} [nfs]", cli_cmd_volume_profile_cbk, "volume profile operations"}, @@ -1812,13 +1812,13 @@ struct cli_cmd volume_cmds[] = { cli_cmd_quota_cbk, "quota translator specific operations"}, - { "volume top {[open|read|write|opendir|readdir] " - "|[read-perf|write-perf bs count ]} " + { "volume top {[open|read|write|opendir|readdir [nfs]] " + "|[read-perf|write-perf [nfs|{bs count }]]} " " [brick ] [list-cnt ]", cli_cmd_volume_top_cbk, "volume top operations"}, - { "volume status [all | []]" + { "volume status [all | [nfs|]]" " [detail|clients|mem|inode|fd|callpool]", cli_cmd_volume_status_cbk, "display status of all or specified volume(s)/brick"}, -- cgit