freebsd-dev/cmd
Prasad Joshi 5a52105925 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 <rthorat@stec-inc.com>
Signed-off-by: Prasad Joshi <pjoshi@stec-inc.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Closes #306
2011-07-04 19:57:01 -07:00
..
mount_zfs Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
sas_switch_id Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
zdb Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
zfs Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
zinject Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
zpios Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
zpool Use consistent error message in zpool sub-command 2011-07-04 19:57:01 -07:00
zpool_id Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
zpool_layout Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
ztest Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
zvol_id Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
Makefile.am Multipath device manageability improvements 2011-06-23 10:46:06 -07:00
Makefile.in Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00