From: Mike Anderson Date: Mon, 27 Mar 2006 09:17:52 +0000 (-0800) Subject: [PATCH] dm: store md name X-Git-Tag: v2.6.17-rc1~308 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7e51f257e87297a5b6fe6d136a8ef67206aaf3a8;p=linux-2.6-omap-h63xx.git [PATCH] dm: store md name 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 Signed-off-by: Alasdair G Kergon Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 48be69f3bcf..f140d499602 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -69,6 +69,7 @@ struct mapped_device { request_queue_t *queue; struct gendisk *disk; + char name[16]; void *interface_ptr; @@ -842,6 +843,7 @@ static struct mapped_device *alloc_dev(unsigned int minor, int persistent) 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);