]> git.baikalelectronics.ru Git - kernel.git/commit
dm thin: detect metadata device resizing
authorJoe Thornber <ejt@redhat.com>
Fri, 10 May 2013 13:37:19 +0000 (14:37 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 10 May 2013 13:37:19 +0000 (14:37 +0100)
commit8fd7b6d4dd7c4b6a63c93ffdaea50f4be689cc1e
treed522f4239193edda8bb204d2c0b4251f2e982bbb
parent700022cb129e26eb92c552345cd1a91994d16b21
dm thin: detect metadata device resizing

Allow the dm thin pool metadata device to be extended.

Whenever a pool is resumed, detect whether the size of the metadata
device has increased, and if so, extend the metadata to use the new
space.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-thin-metadata.c
drivers/md/dm-thin-metadata.h
drivers/md/dm-thin.c