projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
270938b
)
dm thin metadata: zero unused superblock uuid
author
Joe Thornber
<ejt@redhat.com>
Fri, 27 Jul 2012 14:08:11 +0000
(15:08 +0100)
committer
Alasdair G Kergon
<agk@redhat.com>
Fri, 27 Jul 2012 14:08:11 +0000
(15:08 +0100)
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>
drivers/md/dm-thin-metadata.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-thin-metadata.c
b/drivers/md/dm-thin-metadata.c
index 934b3fc7bfc9db68ffd6eb134040e5d16162abed..9f7c1e01dda230c69c10814e1efd46f182731488 100644
(file)
--- 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)
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;