Skip to content
Snippets Groups Projects
Commit b777c889 authored by bwzhou's avatar bwzhou
Browse files

Branch HEAD

b=12191
r=adilger, johann

Add verbosity control to liblustreapi messages.
parent a5ed9803
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,26 @@
typedef void (*llapi_cb_t)(char *obd_type_name, char *obd_name, char *obd_uuid, void *args);
/* liblustreapi message severity level */
enum llapi_message_level {
LLAPI_MSG_OFF = 0,
LLAPI_MSG_FATAL = 1,
LLAPI_MSG_ERROR = 2,
LLAPI_MSG_WARN = 3,
LLAPI_MSG_NORMAL = 4,
LLAPI_MSG_INFO = 5,
LLAPI_MSG_DEBUG = 6,
LLAPI_MSG_MAX
};
/* the bottom three bits reserved for llapi_message_level */
#define LLAPI_MSG_MASK 0x00000007
#define LLAPI_MSG_NO_ERRNO 0x00000010
/* liblustreapi.c */
extern void llapi_msg_set_level(int level);
extern void llapi_err(int level, char *fmt, ...);
extern void llapi_printf(int level, char *fmt, ...);
extern int llapi_file_create(const char *name, unsigned long stripe_size,
int stripe_offset, int stripe_count,
int stripe_pattern);
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment