aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <[email protected]>2009-06-07 13:52:52 +0200
committerBartlomiej Zolnierkiewicz <[email protected]>2009-06-07 13:52:52 +0200
commite957b60d1583022a0f7c03267d37fcae2ddb78b1 (patch)
tree5e9518eb38d427b9ac41c9b90b31b9b2453aebfc /net/lapb/lapb_iface.c
parentdb429e9ec0f9dee2d8e50c154f04f29f880fc9d6 (diff)
ide-gd: implement block device ->set_capacity method (v2)
* Use ->probed_capacity to store native device capacity for ATA disks. * Add ->set_capacity method to struct ide_disk_ops. * Implement disk device ->set_capacity method for ATA disks. * Implement block device ->set_capacity method. v2: * Check if LBA and HPA are supported in ide_disk_set_capacity(). * According to the spec the SET MAX ADDRESS command shall be immediately preceded by a READ NATIVE MAX ADDRESS command. * Add ide_disk_hpa_{get_native,set}_capacity() helpers. Together with the previous patch adding ->set_capacity block device method this allows automatic disabling of Host Protected Area (HPA) if any partitions overlapping HPA are detected. Cc: Robert Hancock <[email protected]> Cc: Frans Pop <[email protected]> Cc: "Andries E. Brouwer" <[email protected]> Cc: Al Viro <[email protected]> Emphatically-Acked-by: Alan Cox <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions