diff mbox

[06/11] Btrfs-progs: make zero-log use partial open

Message ID 1414778489-4049-7-git-send-email-jbacik@fb.com
State Accepted
Headers show

Commit Message

Josef Bacik Oct. 31, 2014, 6:01 p.m. UTC
Because seriously, we only want to kill the tree log.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
---
 btrfs-zero-log.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/btrfs-zero-log.c b/btrfs-zero-log.c
index 88998e9..46c705c 100644
--- a/btrfs-zero-log.c
+++ b/btrfs-zero-log.c
@@ -61,7 +61,7 @@  int main(int ac, char **av)
 		goto out;
 	}
 
-	root = open_ctree(av[1], 0, OPEN_CTREE_WRITES);
+	root = open_ctree(av[1], 0, OPEN_CTREE_WRITES | OPEN_CTREE_PARTIAL);
 
 	if (root == NULL)
 		return 1;