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-04-07 10:23:34 +01:00
2009-04-08 17:45:02 -07:00
2009-04-06 07:01:56 -07:00
2009-04-06 09:48:20 -07:00
2009-04-16 08:51:52 -07:00
2009-04-06 13:25:56 -07:00
2009-04-14 08:48:57 -07:00
2009-04-05 02:14:15 -04:00
2009-04-06 20:00:51 -04:00
2009-04-06 08:04:53 -07:00
2009-04-02 19:05:01 -07:00
2009-04-15 08:28:09 +02:00
2009-06-07 13:52:52 +02:00
2009-04-16 07:47:49 -07:00
2009-04-13 08:32:28 -07:00
2009-04-03 15:24:35 -07:00
2009-04-04 14:20:34 -07:00
2009-04-07 09:05:35 -07:00
2009-04-03 14:53:32 -07:00
2009-04-02 19:05:00 -07:00
2009-04-02 19:04:57 -07:00
2009-04-14 11:11:52 +02:00
2009-04-09 00:27:13 +01:00
2009-04-02 19:55:30 +01:00
2009-04-07 08:31:11 -07:00
2009-04-04 10:43:31 +01:00
2009-04-03 14:53:32 -07:00
2009-04-16 16:17:11 -07:00
2009-04-07 08:12:38 +02:00
2009-04-03 11:10:33 -07:00
2009-04-13 15:04:29 -07:00
2009-04-03 12:13:03 +02:00
2009-04-13 15:04:30 -07:00
2009-04-15 12:10:12 +02:00
2009-04-03 16:42:37 +01:00
2009-04-03 16:42:39 +01:00
2009-04-08 00:12:11 -05:00
2009-04-09 05:43:32 +02:00
2009-06-07 13:52:52 +02:00
2009-04-06 01:41:22 +02:00
2009-04-03 09:48:29 -07:00
2009-04-06 18:11:41 -07:00
2009-04-13 17:02:14 +02:00
2009-06-07 13:52:52 +02:00
2009-04-02 19:04:53 -07:00
2009-04-13 15:04:29 -07:00
2009-04-16 16:17:10 -07:00
2009-04-03 21:46:01 +01:00
2009-04-07 14:07:52 -07:00
2009-04-07 08:31:09 -07:00
2009-04-09 10:35:30 -07:00
2009-04-03 15:24:35 -07:00
2009-04-02 19:04:49 -07:00
2009-04-16 16:17:10 -07:00
2009-04-03 12:21:12 +02:00
2009-04-09 07:49:44 -07:00
2009-04-07 08:31:08 -07:00
2009-04-06 16:06:26 +01:00
2009-04-06 16:06:26 +01:00
2009-04-06 16:06:26 +01:00
2009-04-16 15:28:23 -04:00
2009-04-02 19:05:10 -07:00
2009-04-02 19:04:56 -07:00
2009-04-05 11:04:19 -07:00
2009-04-07 08:12:38 +02:00
2009-04-02 19:04:48 -07:00
2009-04-02 19:04:48 -07:00
2009-04-05 10:33:07 -07:00
2009-04-05 11:04:19 -07:00
2009-04-03 17:41:23 -07:00
2009-04-03 16:42:42 +01:00
2009-04-03 16:42:44 +01:00
2009-04-03 16:42:43 +01:00
2009-04-03 17:41:12 -07:00
2009-04-07 08:31:20 -07:00
2009-04-02 19:04:56 -07:00
2009-04-03 16:42:36 +01:00
2009-04-03 16:42:39 +01:00
2009-04-07 08:44:06 -07:00
2009-05-22 16:23:39 +02:00
2009-04-06 11:25:06 -07:00
2009-04-10 21:36:18 +02:00
2009-04-13 14:51:23 -07:00
2009-04-15 12:10:12 +02:00
2009-04-16 16:17:10 -07:00
2009-04-02 19:05:00 -07:00
2009-04-03 12:23:05 +02:00
2009-04-03 12:23:05 +02:00
2009-04-03 12:23:05 +02:00
2009-04-14 11:31:50 +02:00
2009-04-02 19:04:51 -07:00
2009-04-09 07:37:02 +02:00
2009-04-03 12:08:57 +02:00
2009-04-07 08:44:05 -07:00
2009-04-08 14:33:38 -07:00
2009-04-13 15:04:29 -07:00
2009-04-03 12:23:06 +02:00
2009-04-03 16:42:35 +01:00
2009-04-03 12:23:06 +02:00
2009-04-02 19:05:11 -07:00
2009-04-15 12:10:12 +02:00
2009-04-05 10:30:21 -07:00
2009-04-10 15:48:52 +02:00
2009-04-02 19:05:01 -07:00
2009-04-09 05:43:32 +02:00
2009-04-02 19:05:00 -07:00
2009-04-07 08:44:04 -07:00
2009-04-17 10:50:27 -07:00
2009-04-06 21:44:29 -03:00
2009-04-02 19:04:50 -07:00
2009-04-07 08:31:03 -07:00