summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-thin-metadata.h
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2013-12-04 16:58:19 -0500
committerMike Snitzer <snitzer@redhat.com>2013-12-10 16:35:13 -0500
commit9b7aaa64f96f7ca280d75326fca42f42017b89ef (patch)
treea0028aeb56bc229e9bc7b1dfcecbb3f03d213131 /drivers/md/dm-thin-metadata.h
parent5383ef3a929a1366e2ced45cd6d74be7aa2a2281 (diff)
downloadlinux-stable-9b7aaa64f96f7ca280d75326fca42f42017b89ef.tar.gz
linux-stable-9b7aaa64f96f7ca280d75326fca42f42017b89ef.tar.bz2
linux-stable-9b7aaa64f96f7ca280d75326fca42f42017b89ef.zip
dm thin: allow pool in read-only mode to transition to read-write mode
A thin-pool may be in read-only mode because the pool's data or metadata space was exhausted. To allow for recovery, by adding more space to the pool, we must allow a pool to transition from PM_READ_ONLY to PM_WRITE mode. Otherwise, running out of space will render the pool permanently read-only. Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/md/dm-thin-metadata.h')
-rw-r--r--drivers/md/dm-thin-metadata.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-thin-metadata.h b/drivers/md/dm-thin-metadata.h
index 845ebbe589a9..7bcc0e1d6238 100644
--- a/drivers/md/dm-thin-metadata.h
+++ b/drivers/md/dm-thin-metadata.h
@@ -193,6 +193,7 @@ int dm_pool_resize_metadata_dev(struct dm_pool_metadata *pmd, dm_block_t new_siz
* that nothing is changing.
*/
void dm_pool_metadata_read_only(struct dm_pool_metadata *pmd);
+void dm_pool_metadata_read_write(struct dm_pool_metadata *pmd);
int dm_pool_register_metadata_threshold(struct dm_pool_metadata *pmd,
dm_block_t threshold,