aboutsummaryrefslogtreecommitdiffstats
path: root/btrfs-zero-log.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2014-10-31 14:01:24 -0400
committerDavid Sterba <dsterba@suse.cz>2014-11-14 11:00:28 +0100
commit748f4dedbbee2049dce950c7712ab744fbe83fec (patch)
treedbfc94c3060d4e13aa2bb0c927d2cedf338387ad /btrfs-zero-log.c
parent6d6a3e79917487fd3c8945b82e785f77ac84882b (diff)
downloadbtrfs-progs-748f4dedbbee2049dce950c7712ab744fbe83fec.tar.gz
btrfs-progs-748f4dedbbee2049dce950c7712ab744fbe83fec.tar.xz
btrfs-progs-748f4dedbbee2049dce950c7712ab744fbe83fec.zip
Btrfs-progs: make zero-log use partial open
Because seriously, we only want to kill the tree log. Thanks, Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'btrfs-zero-log.c')
-rw-r--r--btrfs-zero-log.c2
1 files changed, 1 insertions, 1 deletions
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;