diff options
author | Prasad Joshi <[email protected]> | 2011-07-04 23:45:35 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-07-04 19:57:01 -0700 |
commit | 5a52105925e461e45f4948fc77695b25d3fa3009 (patch) | |
tree | 29d2689ef20b57b25bcec981bcfc4f314cb445dd /cmd/zpool/zpool_vdev.c | |
parent | b59322a0d8919cc0ed5982f5a869e9e022645515 (diff) |
Use consistent error message in zpool sub-command
The zpool sub-commands like iostat, list, and status should
display consistent message when a given pool is unavailable or
no pool is present. This change unifies the default behavior
as follows:
root@prasad:~# ./zpool list 1 2
no pools available
no pools available
root@prasad:~# ./zpool iostat 1 2
no pools available
no pools available
root@prasad:~# ./zpool status 1 2
no pools available
no pools available
root@prasad:~# ./zpool list tan 1 2
cannot open 'tan': no such pool
root@prasad:~# ./zpool iostat tan 1 2
cannot open 'tan': no such pool
root@prasad:~# ./zpool status tan 1 2
cannot open 'tan': no such pool
Reported-by: Rajshree Thorat <[email protected]>
Signed-off-by: Prasad Joshi <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #306
Diffstat (limited to 'cmd/zpool/zpool_vdev.c')
0 files changed, 0 insertions, 0 deletions