]> git.proxmox.com Git - mirror_zfs.git/commit
Add libzfs_error_init() function
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 20 May 2015 21:39:52 +0000 (14:39 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 May 2015 20:34:58 +0000 (13:34 -0700)
commit65037d9b25c2bfa98d0aa5c9e34678127c03b345
treef952dd40e26497af55a6a61cf9c42ea6baa7d6dc
parent87abfcba2283bfeb6636caf9aa2a72186d7708c4
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>
cmd/mount_zfs/mount_zfs.c
cmd/zdb/zdb.c
cmd/zfs/zfs_main.c
cmd/zinject/zinject.c
cmd/zpool/zpool_main.c
include/libzfs.h
lib/libzfs/libzfs_util.c