Re: [PATCH md 001 of 10] Make sure /block link in /sys/.../md/ goes to correct devices.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 02, 2005 at 09:14:52PM +1100, NeilBrown wrote:
> 
> 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 <neilb@xxxxxxx>

Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxx>

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux