mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-16 20:15:20 +00:00
btrfs-progs: zoned: use fixed width type when reading zone size
The ioctl BLKGETZONESZ expects 32bit integer, declare the target variable as such. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
4d86d928c1
commit
1dc6f33c28
@ -471,7 +471,7 @@ size_t btrfs_sb_io(int fd, void *buf, off_t offset, int rw)
|
|||||||
const u64 sb_size_sector = (BTRFS_SUPER_INFO_SIZE >> SECTOR_SHIFT);
|
const u64 sb_size_sector = (BTRFS_SUPER_INFO_SIZE >> SECTOR_SHIFT);
|
||||||
u64 mapped = U64_MAX;
|
u64 mapped = U64_MAX;
|
||||||
u32 zone_num;
|
u32 zone_num;
|
||||||
unsigned int zone_size_sector;
|
u32 zone_size_sector;
|
||||||
size_t rep_size;
|
size_t rep_size;
|
||||||
int mirror = -1;
|
int mirror = -1;
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
Reference in New Issue
Block a user