Check for device resize when rescanning partitions
authorAndrew Patterson <andrew.patterson@hp.com>
Thu, 4 Sep 2008 20:27:30 +0000 (14:27 -0600)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:12 +0000 (08:56 +0200)
commit9bc3ffbfbdf71fefda8a261ef8d6fdc388a29b42
treec6f4ffdb3351a379fc5aee8fd6f91ba6caee83d0
parentc3279d1454cdfed02a557d789d8a6d08ab4cbe70
Check for device resize when rescanning partitions

Check for device resize in the rescan_partitions() routine. If the device
has been resized, the bdev size is set to match. The rescan_partitions()
routine is called when opening the device and when calling the
BLKRRPART ioctl.

Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/partitions/check.c