summaryrefslogtreecommitdiffstats
path: root/include/libzfs.h
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2015-05-20 14:39:52 -0700
committerBrian Behlendorf <[email protected]>2015-05-22 13:34:58 -0700
commit65037d9b25c2bfa98d0aa5c9e34678127c03b345 (patch)
treef952dd40e26497af55a6a61cf9c42ea6baa7d6dc /include/libzfs.h
parent87abfcba2283bfeb6636caf9aa2a72186d7708c4 (diff)
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 <[email protected]> Signed-off-by: Chris Dunlap <[email protected]> Signed-off-by: Richard Yao <[email protected]>
Diffstat (limited to 'include/libzfs.h')
-rw-r--r--include/libzfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libzfs.h b/include/libzfs.h
index c4e30c5d4..db8ee7167 100644
--- a/include/libzfs.h
+++ b/include/libzfs.h
@@ -203,6 +203,7 @@ extern void zfs_save_arguments(int argc, char **, char *, int);
extern int zpool_log_history(libzfs_handle_t *, const char *);
extern int libzfs_errno(libzfs_handle_t *);
+extern const char *libzfs_error_init(int);
extern const char *libzfs_error_action(libzfs_handle_t *);
extern const char *libzfs_error_description(libzfs_handle_t *);
extern int zfs_standard_error(libzfs_handle_t *, int, const char *);
@@ -749,7 +750,6 @@ extern int zfs_nicestrtonum(libzfs_handle_t *, const char *, uint64_t *);
#define STDERR_VERBOSE 0x02
int libzfs_run_process(const char *, char **, int flags);
-int libzfs_load_module(const char *);
/*
* Given a device or file, determine if it is part of a pool.