summaryrefslogtreecommitdiff
path: root/disk-io.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2015-01-16 11:04:09 +0800
committerDavid Sterba <dsterba@suse.cz>2015-02-11 17:14:05 +0100
commit0c05f623b13f93105163535f016fc049fa04dbb6 (patch)
treee2d1872b39f0500c697c6511591926fa4986d6b9 /disk-io.h
parent56e69234e471bb5982a4928da8e605d9d803b43a (diff)
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 <quwenruo@cn.fujitsu.com> [renamed vars and funcs, added comments] Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'disk-io.h')
-rw-r--r--disk-io.h5
1 files changed, 5 insertions, 0 deletions
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)