lkml.org 
[lkml]   [2008]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] block: add partition attribute for partition number
On Mon, Oct 13 2008, Tejun Heo wrote:
> With extended devt, finding out the partition number becomes a bit
> more challenging as subtracting the minor number from that of the
> parent device doesn't work anymore. The only thing left is parsing
> the partition name which is brittle and not exactly universal (some
> have '-' between the device name and partition number while others
> don't). This patch introduced partition attribute which contains the
> partition number of the device. This should make finding partitions
> and its index easier.
>
> This problem and solution were suggested by H. Peter Anvin.

Applied to for-linus

--
Jens Axboe



\
 
 \ /
  Last update: 2008-10-13 13:31    [W:0.059 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site