2 * Copyright (C) 2001 Sistina Software (UK) Limited.
4 * This file is released under the LGPL.
10 #include "libdevmapper.h"
19 extern dm_log_fn _log;
21 #define log_error(msg, x...) _log(_LOG_ERR, __FILE__, __LINE__, msg, ## x)
22 #define log_print(msg, x...) _log(_LOG_WARN, __FILE__, __LINE__, msg, ## x)
23 #define log_verbose(msg, x...) _log(_LOG_NOTICE, __FILE__, __LINE__, msg, ## x)
24 #define log_very_verbose(msg, x...) _log(_LOG_INFO, __FILE__, __LINE__, msg, ## x)
25 #define log_debug(msg, x...) _log(_LOG_DEBUG, __FILE__, __LINE__, msg, ## x)
27 struct target *create_target(uint64_t start,
29 const char *type, const char *params);
31 int add_dev_node(const char *dev_name, uint32_t minor, uint32_t major);
32 int rm_dev_node(const char *dev_name);
33 int rename_dev_node(const char *old_name, const char *new_name);
34 void update_devs(void);
36 #define DM_LIB_VERSION "1.00.07-ioctl (2003-11-21)"