aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2010-05-15 20:09:31 +0200
committerJens Axboe <[email protected]>2010-05-21 20:01:03 +0200
commitb403a98e260f3a8c7c33f58a07c7ae549852170f (patch)
treeb6672b43cc1808632547f2f16c917d33d85e1399 /lib/string_helpers.c
parent1493bf217f7f59a5d9e2095a7dbcec00fb36ca8b (diff)
block: improve automatic native capacity unlocking
Currently, native capacity unlocking is initiated only when a recognized partition extends beyond the end of the disk. However, there are several other unhandled cases where truncated capacity can lead to misdetection of partitions. * Partition table is fully beyond EOD. * Partition table is partially beyond EOD (daisy chained ones). * Recognized partition starts beyond EOD. This patch updates generic partition check code such that all the above three cases are handled too. For the first two, @state tracks whether low level partition check code tried to read beyond EOD during partition scan and triggers native capacity unlocking accordingly. The third is now handled similarly to the original unlocking case. Signed-off-by: Tejun Heo <[email protected]> Cc: Ben Hutchings <[email protected]> Acked-by: David S. Miller <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions