vserver 2.0 rc7
[linux-2.6.git] / drivers / md / dm-table.c
index 3ef2ad4..18e9b99 100644 (file)
@@ -242,7 +242,7 @@ static void free_devices(struct list_head *devices)
        }
 }
 
-void table_destroy(struct dm_table *t)
+static void table_destroy(struct dm_table *t)
 {
        unsigned int i;
 
@@ -455,6 +455,8 @@ static int __table_get_device(struct dm_table *t, struct dm_target *ti,
                        return r;
                }
 
+               format_dev_t(dd->name, dev);
+
                atomic_set(&dd->count, 0);
                list_add(&dd->list, &t->devices);