HomeFreeBSD

Add libzfs_error_init() function

Description

Add libzfs_error_init() function

All fprintf() error messages are moved out of the libzfs_init()
library function where they never belonged in the first place. A
libzfs_error_init() function is added to provide useful error
messages for the most common causes of failure.

Additionally, in libzfs_run_process() the 'rc' variable was renamed
to 'error' for consistency with the rest of the code base.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chris Dunlap <cdunlap@llnl.gov>
Signed-off-by: Richard Yao <ryao@gentoo.org>

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on May 20 2015, 9:39 PM
Parents
rG87abfcba2283: Wait in libzfs_init() for the /dev/zfs device
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG65037d9b25c2: Add libzfs_error_init() function (authored by Brian Behlendorf <behlendorf1@llnl.gov>).May 22 2015, 8:34 PM