summaryrefslogtreecommitdiff
path: root/include/linux/if_packet.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2008-10-13 15:27:59 +0400
committerJens Axboe <jens.axboe@oracle.com>2008-10-17 10:46:56 +0400
commit0fc71e3d6520ba7abad5cfbc9a33db0190e4d5b8 (patch)
tree4793789ea94ffec2c5169378fd6ed7228fb31eeb /include/linux/if_packet.h
parent0e11e342bac31f51ea055b147d20f77b59b9dd2c (diff)
downloadlinux-0fc71e3d6520ba7abad5cfbc9a33db0190e4d5b8.tar.xz
block: add partition attribute for partition number
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. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/if_packet.h')
0 files changed, 0 insertions, 0 deletions