Markus Armbruster 2b584959ed block: Geometry and translation hints are now useless, purge them
There are two producers of these hints: drive_init() on behalf of
-drive, and hd_geometry_guess().

The only consumer of the hint is hd_geometry_guess().

The callers of hd_geometry_guess() call it only when drive_init()
didn't set the hints.  Therefore, drive_init()'s hints are never used.

Thus, hd_geometry_guess() only ever sees hints it produced itself in a
prior call.  Only the first call computes something, subsequent calls
just repeat the first call's results.  However, hd_geometry_guess() is
never called more than once: the device models don't, and the block
device is destroyed on unplug.  Thus, dropping the repeat feature
doesn't break anything now.

If a block device wasn't destroyed on unplug and could be reused with
a new device, then repeating old results would be wrong.  Thus,
dropping the repeat feature prevents future breakage.

This renders the hints unused.  Purge them from the block layer.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2012-07-17 16:48:31 +02:00
..
2012-07-04 10:43:34 +00:00
2012-06-21 16:06:11 +00:00
2012-06-21 16:06:11 +00:00
2012-06-21 16:06:11 +00:00
2012-06-19 13:24:44 +00:00
2012-06-22 10:46:12 +02:00
2012-04-25 10:53:47 +03:00
2012-05-24 02:03:30 +04:00
2012-07-04 10:43:32 +00:00
2012-07-04 10:43:32 +00:00
2012-04-26 12:54:17 +04:00
2012-06-18 15:14:38 +02:00
2012-07-04 10:43:33 +00:00
2012-07-04 10:43:33 +00:00
2012-07-04 10:43:33 +00:00
2012-07-04 10:43:33 +00:00
2012-07-04 10:43:34 +00:00
2012-06-04 23:00:45 +02:00
2012-06-24 01:04:51 +02:00
2012-06-18 15:14:38 +02:00
2012-07-02 10:18:41 +02:00
2012-06-04 23:00:41 +02:00
2012-05-16 18:04:44 -03:00
2012-05-21 19:22:50 +03:00
2012-06-22 10:49:55 +02:00
2012-06-15 14:03:42 +02:00
2012-07-14 10:12:59 +00:00
2012-06-11 00:23:04 +02:00
2012-07-17 16:48:31 +02:00
2012-06-22 10:49:55 +02:00
2012-06-22 10:49:45 +02:00
2012-06-04 23:00:43 +02:00
2012-06-07 17:18:58 +03:00
2012-06-24 01:04:45 +02:00
2012-06-18 15:14:38 +02:00
2012-06-04 23:00:45 +02:00
2012-07-09 11:59:55 +02:00
2012-06-22 10:46:12 +02:00
2012-06-22 10:46:12 +02:00
2012-06-22 10:49:55 +02:00
2012-07-14 10:50:52 +00:00
2012-04-25 10:53:47 +03:00
2012-05-21 15:40:50 -05:00
2012-06-22 10:49:55 +02:00
2012-06-21 16:06:11 +00:00
2012-06-21 16:06:11 +00:00
2012-05-16 18:04:44 -03:00
2012-06-15 13:08:13 +02:00
2012-06-15 13:08:13 +02:00