summaryrefslogtreecommitdiff
path: root/cmds-check.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmds-check.c')
-rw-r--r--cmds-check.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds-check.c b/cmds-check.c
index b518a6b5..2911af08 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -6390,7 +6390,8 @@ int cmd_check(int argc, char **argv)
int option_index = 0;
int init_csum_tree = 0;
int init_extent_tree = 0;
- enum btrfs_open_ctree_flags ctree_flags = OPEN_CTREE_PARTIAL;
+ enum btrfs_open_ctree_flags ctree_flags =
+ OPEN_CTREE_PARTIAL | OPEN_CTREE_EXCLUSIVE;
while(1) {
int c;