Files
linux-apfs/drivers/ide
Bartlomiej Zolnierkiewicz e957b60d15 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 <hancockrwd@gmail.com>
Cc: Frans Pop <elendil@planet.nl>
Cc: "Andries E. Brouwer" <Andries.Brouwer@cwi.nl>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Emphatically-Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2009-06-07 13:52:52 +02:00
..
2009-03-31 20:15:21 +02:00
2009-04-08 14:13:04 +02:00
2009-01-06 17:20:55 +01:00
2009-01-06 17:20:52 +01:00
2009-03-27 12:46:28 +01:00
2009-04-18 17:42:19 +02:00
2009-04-08 14:13:02 +02:00
2009-04-08 14:13:03 +02:00
2009-03-27 12:46:45 +01:00
2009-03-31 20:15:33 +02:00
2009-03-31 20:15:26 +02:00
2009-03-27 12:46:34 +01:00
2009-04-08 14:13:03 +02:00
2009-05-22 16:23:38 +02:00
2009-03-27 12:46:18 +01:00
2009-04-08 14:13:03 +02:00
2009-01-06 17:20:52 +01:00
2009-04-08 14:13:03 +02:00
2009-04-18 17:42:19 +02:00
2009-04-08 14:13:03 +02:00
2009-01-06 17:20:52 +01:00
2009-04-08 14:13:03 +02:00