summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Buchbinder <abuchbinder@google.com>2014-06-12 15:57:33 -0700
committerDavid Sterba <dsterba@suse.cz>2014-08-22 14:43:09 +0200
commitf8c6dabca56c8aa277c0019fecb3c0169497323a (patch)
tree4ef43e504baaf523fc739292d9ce88b11303fd41
parent4156fadc5399adfb4681f01908a1927760d12bdc (diff)
btrfs-progs: Properly size the leafsize field in the mdrestore_struct struct
It's 32 bits as defined in ctree.h, but the struct had it as 64 bits. Found using MemorySanitizer. Signed-off-by: Adam Buchbinder <abuchbinder@google.com> Reviewed-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r--btrfs-image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-image.c b/btrfs-image.c
index cf1fe2d9..98d765ae 100644
--- a/btrfs-image.c
+++ b/btrfs-image.c
@@ -128,7 +128,7 @@ struct mdrestore_struct {
struct rb_root chunk_tree;
struct list_head list;
size_t num_items;
- u64 leafsize;
+ u32 leafsize;
u64 devid;
u8 uuid[BTRFS_UUID_SIZE];
u8 fsid[BTRFS_FSID_SIZE];