From: Mike Anderson <[email-masked]>

The patch stores a printable device number in struct mapped_device 
for use in warning messages and with a proposed netlink interface.

Signed-off-by: Mike Anderson <[email-masked]>
Signed-Off-By: Alasdair G Kergon <[email-masked]>

Index: linux-2.6.16-rc1/drivers/md/dm.c
===================================================================
--- linux-2.6.16-rc1.orig/drivers/md/dm.c	2006-02-22 20:56:55.000000000 +0000
+++ linux-2.6.16-rc1/drivers/md/dm.c	2006-02-24 16:32:06.000000000 +0000
@@ -68,6 +68,7 @@ struct mapped_device {
 
 	request_queue_t *queue;
 	struct gendisk *disk;
+	char name[16];
 
 	void *interface_ptr;
 
@@ -828,6 +829,7 @@ static struct mapped_device *alloc_dev(u
 	md->disk->private_data = md;
 	sprintf(md->disk->disk_name, "dm-%d", minor);
 	add_disk(md->disk);
+	format_dev_t(md->name, MKDEV(_major, minor));
 
 	atomic_set(&md->pending, 0);
 	init_waitqueue_head(&md->wait);