From: Bartlomiej Zolnierkiewicz Date: Sun, 7 Jun 2009 11:52:52 +0000 (+0200) Subject: partitions: add ->set_capacity block device method X-Git-Tag: v2.6.31-rc1~372^2~18^2~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db429e9ec0f9dee2d8e50c154f04f29f880fc9d6;p=pandora-kernel.git partitions: add ->set_capacity block device method * Add ->set_capacity block device method and use it in rescan_partitions() to attempt enabling native capacity of the device upon detecting the partition which exceeds device capacity. * Add GENHD_FL_NATIVE_CAPACITY flag to try limit attempts of enabling native capacity during partition scan. Together with the consecutive patch implementing ->set_capacity method in ide-gd device driver this allows automatic disabling of Host Protected Area (HPA) if any partitions overlapping HPA are detected. Cc: Robert Hancock Cc: Frans Pop Cc: "Andries E. Brouwer" Acked-by: Al Viro Emphatically-Acked-by: Alan Cox Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed