aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-thin-metadata.c
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2012-07-27 10:08:11 -0400
committerAlasdair G Kergon <agk@redhat.com>2012-07-27 10:08:11 -0400
commit583ceee2ed1d171718aee348163f2ed25d461772 (patch)
tree997074e27de9a2f8204ad89751613eb46dea1d61 /drivers/md/dm-thin-metadata.c
parent270938bac53b03b83b4b0b65b760f32975df72b1 (diff)
dm thin metadata: zero unused superblock uuid
Zero the unused uuid when initialising the metadata superblock. 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-metadata.c')
-rw-r--r--drivers/md/dm-thin-metadata.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-thin-metadata.c b/drivers/md/dm-thin-metadata.c
index 934b3fc7bfc9..9f7c1e01dda2 100644
--- a/drivers/md/dm-thin-metadata.c
+++ b/drivers/md/dm-thin-metadata.c
@@ -455,6 +455,7 @@ static int __write_initial_superblock(struct dm_pool_metadata *pmd)
455 455
456 disk_super = dm_block_data(sblock); 456 disk_super = dm_block_data(sblock);
457 disk_super->flags = 0; 457 disk_super->flags = 0;
458 memset(disk_super->uuid, 0, sizeof(disk_super->uuid));
458 disk_super->magic = cpu_to_le64(THIN_SUPERBLOCK_MAGIC); 459 disk_super->magic = cpu_to_le64(THIN_SUPERBLOCK_MAGIC);
459 disk_super->version = cpu_to_le32(THIN_VERSION); 460 disk_super->version = cpu_to_le32(THIN_VERSION);
460 disk_super->time = 0; 461 disk_super->time = 0;