From: NeilBrown Date: Wed, 9 Nov 2005 05:39:37 +0000 (-0800) Subject: [PATCH] md: make sure /block link in /sys/.../md/ goes to correct devices X-Git-Tag: v2.6.15-rc1~84 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f637b9f9fc195e4f4635faf495fd8b462c21b411;p=pandora-kernel.git [PATCH] md: make sure /block link in /sys/.../md/ goes to correct devices If a block_device is a partition, then it's kobject is bdev->bd_part->kobj otherwise (if it is a full device), the kobject is bdev->bd_disk->kobj As md wants back-links to the correct object (whether partition or not), we need to respect this difference... (Thus current code shows a link to the whole device, whether we are using a partition or not, which is wrong). Signed-off-by: Neil Brown Acked-by: Greg Kroah-Hartman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed