Skip to contentSkip to conversation

dm core: export dm_disk to allow for dm-raid to pass it on to the MD raid0 personality

PATCH Superseded [email protected] 2 participants 2 messages Apr 17, 2015 – Apr 21, 2015 Device mapper

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 dm core: export dm_disk to allow for dm-raid to pass it on to the MD raid0 personality

From: Heinz Mauelshagen <[email protected]>

This patch is a prerequisite for dm-raid "raid0" support to allow dm-raid to set rs->md.gendisk, which is required by the MD RAID0 pesonality to set disk stacking limits.

---
 drivers/md/dm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/md/dm.c +1 -0
index 8001fe9..f11e2f5 100644
@@ -3206,6 +3206,7 @@ struct gendisk *dm_disk(struct mapped_device *md)
 {
 	return md->disk;
 }
+EXPORT_SYMBOL_GPL(dm_disk);
 
 struct kobject *dm_kobject(struct mapped_device *md)
 {
Signature · 1 line
2.1.0
#1 lore raw
Quoted 27 lines · On Apr 17, 2015, at 7:39 AM, [email protected] wrote:

From: Heinz Mauelshagen <[email protected]>

This patch is a prerequisite for dm-raid "raid0" support to allow dm-raid to set rs->md.gendisk, which is required by the MD RAID0 pesonality to set disk stacking limits.

---
drivers/md/dm.c | 1 +

1 file changed, 1 insertion(+)
drivers/md/dm.c +1 -0
index 8001fe9..f11e2f5 100644
@@ -3206,6 +3206,7 @@ struct gendisk *dm_disk(struct mapped_device *md)
 {
 	return md->disk;
 }
+EXPORT_SYMBOL_GPL(dm_disk);
 
 struct kobject *dm_kobject(struct mapped_device *md)
 {
Quoted 1 line

—

This patch goes away due to changes in prev patch.

brassow

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel