]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4a5fc9621ede1e2523d6f510e156b43acd612fc5
treec6f4ffdb3351a379fc5aee8fd6f91ba6caee83d0
parent6a4f5c17697e186eb65b2439320e9ebd9f00ddff
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