[PATCH] dm: improve error message consistency
Tidy device-mapper error messages to include context information automatically. Signed-off-by: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
5c6bd75d06
commit
72d9486169
@ -21,6 +21,8 @@
|
||||
#include <linux/hdreg.h>
|
||||
#include <linux/blktrace_api.h>
|
||||
|
||||
#define DM_MSG_PREFIX "core"
|
||||
|
||||
static const char *_name = DM_NAME;
|
||||
|
||||
static unsigned int major = 0;
|
||||
@ -1108,6 +1110,12 @@ void dm_get(struct mapped_device *md)
|
||||
atomic_inc(&md->holders);
|
||||
}
|
||||
|
||||
const char *dm_device_name(struct mapped_device *md)
|
||||
{
|
||||
return md->name;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(dm_device_name);
|
||||
|
||||
void dm_put(struct mapped_device *md)
|
||||
{
|
||||
struct dm_table *map;
|
||||
|
Reference in New Issue
Block a user