summaryrefslogtreecommitdiff
path: root/convert
diff options
context:
space:
mode:
authorLakshmipathi.G <lakshmipathi.g@giis.co.in>2017-06-26 14:43:31 +0200
committerDavid Sterba <dsterba@suse.com>2017-06-26 17:09:53 +0200
commit8636132c6d3e0b916a6877c327314f211498ab88 (patch)
treed0ce133e9dfd27b47d4e3051e9a1927237d6adda /convert
parent66e069d7f13d2cdec9d0b9e05fce19c1952f825b (diff)
btrfs-progs: convert: widen int types in convert context
The u32 types in the convert context might not be enough for some very large filesytems (20TB). Use 64bit types to be safe. Signed-off-by: Lakshmipathi.G <lakshmipathi.g@giis.co.in> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'convert')
-rw-r--r--convert/common.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/convert/common.h b/convert/common.h
index 0d3adeaa..2f4ea485 100644
--- a/convert/common.h
+++ b/convert/common.h
@@ -30,10 +30,10 @@ struct btrfs_mkfs_config;
struct btrfs_convert_context {
u32 blocksize;
- u32 first_data_block;
- u32 block_count;
- u32 inodes_count;
- u32 free_inodes_count;
+ u64 first_data_block;
+ u64 block_count;
+ u64 inodes_count;
+ u64 free_inodes_count;
u64 total_bytes;
char *volume_name;
const struct btrfs_convert_operations *convert_ops;