btrfs-progs/mkfs
Josef Bacik 6ee697fb25 btrfs-progs: mkfs: use blocks_nr to determine the super used bytes
We were setting the super block's used bytes to a static number.
However the number of blocks we have to write has the correct used size,
so just add up the total number of blocks we're allocating as we
determine their offsets.  This value will be used later which is why I'm
calculating it this way instead of doing the math to set the bytes_super
specifically.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2021-09-03 15:32:16 +02:00
..
common.c btrfs-progs: mkfs: use blocks_nr to determine the super used bytes 2021-09-03 15:32:16 +02:00
common.h btrfs-progs: mkfs: get rid of MKFS_SUPER_BLOCK 2021-09-03 15:30:54 +02:00
main.c btrfs-progs: mkfs: update message when creating zoned fs with non-single profiles 2021-07-30 16:13:58 +02:00
Makefile btrfs-progs: build: add stub makefile to image and mkfs 2019-07-04 15:36:01 +02:00
rootdir.c btrfs-progs: build: remove incomplete android support 2021-05-06 16:41:47 +02:00
rootdir.h btrfs-progs: mkfs/rootdir: Fix memory leak in traverse_directory() 2018-02-14 16:31:19 +01:00