]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit24347e9595704464f62a4ed8f46abf62b4c79cdd
treed522f4239193edda8bb204d2c0b4251f2e982bbb
parent1921c56d95c4ac92b359ad44ffbc1e9a36060b29
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