zfsonlinux/zfs — Issue #581: zpool/zfs error messages need to go to stderr instead of stdout
Author: GregorKopka
Created: 2012-02-17 13:17:29+00:00
State: open

The error messages of 'no pools/datasets available' (zpool list / zfs list) are output on stdout.

I would expect to find nothing in stdout in case there are no datasets/pools available, the current behaviour makes scripting zfs and zpool more complex than it needs to be:

> for i in `zpool list -o name -H`; do {something} $i; done

will call {something} for the pools 'no' 'pools' and 'available' - instead of turning the line into a somewhat expensive no-op.

Please fix this and output these error messages to stderr.