]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
block: restart partition scan after resizing a device
authorTejun Heo <tj@kernel.org>
Sat, 15 May 2010 18:09:28 +0000 (20:09 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 21 May 2010 18:01:02 +0000 (20:01 +0200)
commit56bca01738733709bef076e2e97bbd01e5659f24
treed4444fe75c7571a0fd9dd24df0ae7017b26cb7c5
parentfa4b9074cd8428958c2adf9dc0c831f46e27c193
block: restart partition scan after resizing a device

Device resize via ->set_capacity() can reveal new partitions (e.g. in
chained partition table formats such as dos extended parts).  Restart
partition scan from the beginning after resizing a device.  This
change also makes libata always revalidate the disk after resize which
makes lower layer native capacity unlocking implementation simpler and
more robust as resize can be handled in the usual path.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Ben Hutchings <ben@decadent.org.uk>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/partitions/check.c