From 0c05f623b13f93105163535f016fc049fa04dbb6 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Fri, 16 Jan 2015 11:04:09 +0800 Subject: btrfs-progs: Add support to suppress tree block csum error output Add new open ctree flag OPEN_CTREE_SUPPRESS_CHECK_BLOCK_ERRORS to suppress tree block csum error output. Provides the basis for new btrfs-find-root and other enhancement on btrfs offline tools output. Signed-off-by: Qu Wenruo [renamed vars and funcs, added comments] Signed-off-by: David Sterba --- disk-io.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'disk-io.h') diff --git a/disk-io.h b/disk-io.h index 53df8f06..a69a62f2 100644 --- a/disk-io.h +++ b/disk-io.h @@ -34,6 +34,11 @@ enum btrfs_open_ctree_flags { OPEN_CTREE_NO_BLOCK_GROUPS = (1 << 5), OPEN_CTREE_EXCLUSIVE = (1 << 6), OPEN_CTREE_NO_DEVICES = (1 << 7), + /* + * Don't print error messages if bytenr or checksums do not match in + * tree block headers. Turn on by OPEN_CTREE_SUPPRESS_ERROR + */ + OPEN_CTREE_SUPPRESS_CHECK_BLOCK_ERRORS = (1 << 8) }; static inline u64 btrfs_sb_offset(int mirror) -- cgit v1.2.3