]> git.proxmox.com Git - mirror_zfs.git/commit - cmd/zfs/zfs_main.c
Use stderr for 'no pools/datasets available' error
authorGregor Kopka <mailfrom-github.com@kopka.net>
Wed, 14 Mar 2012 13:34:00 +0000 (14:34 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 15 Mar 2012 17:24:00 +0000 (10:24 -0700)
commit42cb3819f1a1f536105faac81ffc150f3da90a80
tree5458e28574eb444d18bcb4ab8388e1d9db93e6c2
parent0ece356db51e225c3d4a26dff7cf67c99b6b9c55
Use stderr for 'no pools/datasets available' error

The 'zfs list' and 'zpool list' commands output the message
'no datasets/pools available' to stdout.  This should go to
stderr and only the available datasets/pools should go to
stdout.  Returning nothing to stdout is expected behavior
when there is nothing to list.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #581
cmd/zfs/zfs_main.c [changed mode: 0644->0755]
cmd/zpool/zpool_main.c [changed mode: 0644->0755]