mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-28 17:12:17 +00:00
90020a7605
There are several problems for current sectorsize check: - No check at all for sectorsize This means you can even specify "-s 62k". - No way to specify sectorsize smaller than page size Fix all these problems by: - Introduce btrfs_check_sectorsize() To do: * power of 2 check for sectorsize * lower and upper boundary check for sectorsize * warn about sectorsize mismatch with page size - Remove the max() between page size and sectorsize This allows us to override the sectorsize for 64K page systems. - Make nodesize calculation based on sectorsize No need to use page size any more. Users who specify sectorsize manually really know what they are doing, and we have warned them already. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> |
||
---|---|---|
.. | ||
common.c | ||
common.h | ||
main.c | ||
Makefile | ||
rootdir.c | ||
rootdir.h |