Commit 583ceee2 authored by Joe Thornber's avatar Joe Thornber Committed by Alasdair G Kergon

dm thin metadata: zero unused superblock uuid

Zero the unused uuid when initialising the metadata superblock.
Signed-off-by: default avatarJoe Thornber <ejt@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 270938ba
......@@ -455,6 +455,7 @@ static int __write_initial_superblock(struct dm_pool_metadata *pmd)
disk_super = dm_block_data(sblock);
disk_super->flags = 0;
memset(disk_super->uuid, 0, sizeof(disk_super->uuid));
disk_super->magic = cpu_to_le64(THIN_SUPERBLOCK_MAGIC);
disk_super->version = cpu_to_le32(THIN_VERSION);
disk_super->time = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment