From: Josef Bacik Date: Fri, 31 Oct 2014 18:01:24 +0000 (-0400) Subject: Btrfs-progs: make zero-log use partial open X-Git-Tag: upstream/4.16.1~2605 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=748f4dedbbee2049dce950c7712ab744fbe83fec;p=platform%2Fupstream%2Fbtrfs-progs.git Btrfs-progs: make zero-log use partial open Because seriously, we only want to kill the tree log. Thanks, Signed-off-by: Josef Bacik Signed-off-by: David Sterba --- 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;