diff options
author | Joe Thornber <ejt@redhat.com> | 2012-07-27 15:08:14 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-07-27 15:08:14 +0100 |
commit | 66b1edc05e3f4c1227f51e40f2ead3e973c00cb0 (patch) | |
tree | e9c549057d91f1bb57755b1ac0a38512fcea3664 /drivers/md/dm-thin.c | |
parent | 0fa5b17b08baa37919ddd21529081e3090d47de5 (diff) | |
download | op-kernel-dev-66b1edc05e3f4c1227f51e40f2ead3e973c00cb0.zip op-kernel-dev-66b1edc05e3f4c1227f51e40f2ead3e973c00cb0.tar.gz |
dm thin metadata: add format option to dm_pool_metadata_open
Add a parameter to dm_pool_metadata_open to indicate whether or not an
unformatted metadata area should be formatted.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-thin.c')
-rw-r--r-- | drivers/md/dm-thin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index 0262155..bc9d08c 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c @@ -1712,7 +1712,7 @@ static struct pool *pool_create(struct mapped_device *pool_md, struct pool *pool; struct dm_pool_metadata *pmd; - pmd = dm_pool_metadata_open(metadata_dev, block_size); + pmd = dm_pool_metadata_open(metadata_dev, block_size, true); if (IS_ERR(pmd)) { *error = "Error creating metadata object"; return (struct pool *)pmd; |