aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMike Anderson <andmike@us.ibm.com>2006-03-27 04:17:52 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-27 11:44:59 -0500
commit7e51f257e87297a5b6fe6d136a8ef67206aaf3a8 (patch)
tree1691809f9068c93a461b4c8a2d8aceee0daa60a8 /drivers
parent1ecac7fd74f2e5fb06a7719ecba55fb5778a9a47 (diff)
[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 <andmike@us.ibm.com> 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/dm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 48be69f3bcfa..f140d499602a 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -69,6 +69,7 @@ struct mapped_device {
69 69
70 request_queue_t *queue; 70 request_queue_t *queue;
71 struct gendisk *disk; 71 struct gendisk *disk;
72 char name[16];
72 73
73 void *interface_ptr; 74 void *interface_ptr;
74 75
@@ -842,6 +843,7 @@ static struct mapped_device *alloc_dev(unsigned int minor, int persistent)
842 md->disk->private_data = md; 843 md->disk->private_data = md;
843 sprintf(md->disk->disk_name, "dm-%d", minor); 844 sprintf(md->disk->disk_name, "dm-%d", minor);
844 add_disk(md->disk); 845 add_disk(md->disk);
846 format_dev_t(md->name, MKDEV(_major, minor));
845 847
846 atomic_set(&md->pending, 0); 848 atomic_set(&md->pending, 0);
847 init_waitqueue_head(&md->wait); 849 init_waitqueue_head(&md->wait);