forked from Mirrors/btrfs-progs
btrfs-progs: make btrfs-corrupt-block compile again
Reexport csum_tree_block. Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>master
parent
1425caef05
commit
114a79f823
|
@ -31,6 +31,7 @@
|
|||
#include "transaction.h"
|
||||
#include "list.h"
|
||||
#include "version.h"
|
||||
#include "utils.h"
|
||||
|
||||
struct extent_buffer *debug_corrupt_block(struct btrfs_root *root, u64 bytenr,
|
||||
u32 blocksize, int copy)
|
||||
|
|
|
@ -112,7 +112,7 @@ int verify_tree_block_csum_silent(struct extent_buffer *buf, u16 csum_size)
|
|||
return __csum_tree_block_size(buf, csum_size, 1, 1);
|
||||
}
|
||||
|
||||
static int csum_tree_block(struct btrfs_root *root, struct extent_buffer *buf,
|
||||
int csum_tree_block(struct btrfs_root *root, struct extent_buffer *buf,
|
||||
int verify)
|
||||
{
|
||||
u16 csum_size =
|
||||
|
|
2
utils.h
2
utils.h
|
@ -78,4 +78,6 @@ int get_label_mounted(const char *mount_path, char *labelp);
|
|||
int test_num_disk_vs_raid(u64 metadata_profile, u64 data_profile,
|
||||
u64 dev_cnt, int mixed, char *estr);
|
||||
int is_vol_small(char *file);
|
||||
int csum_tree_block(struct btrfs_root *root, struct extent_buffer *buf,
|
||||
int verify);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue