mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-22 06:55:22 +00:00
btrfs-progs: Remove non-exist csum size.
Current btrfs only support CRC32 as checksum algorithm. But in btrfs_csum_sizes array, we have an extra 0 at tail, causing csum_type 1 can still be considered as supported csum type. Fix it by removing the tailing 0. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
235072c2ee
commit
20ce7d3ee6
2
ctree.h
2
ctree.h
@ -149,7 +149,7 @@ struct btrfs_free_space_ctl;
|
|||||||
/* csum types */
|
/* csum types */
|
||||||
#define BTRFS_CSUM_TYPE_CRC32 0
|
#define BTRFS_CSUM_TYPE_CRC32 0
|
||||||
|
|
||||||
static int btrfs_csum_sizes[] = { 4, 0 };
|
static int btrfs_csum_sizes[] = { 4 };
|
||||||
|
|
||||||
/* four bytes for CRC32 */
|
/* four bytes for CRC32 */
|
||||||
#define BTRFS_CRC32_SIZE 4
|
#define BTRFS_CRC32_SIZE 4
|
||||||
|
Loading…
Reference in New Issue
Block a user