aboutsummaryrefslogtreecommitdiffstats
path: root/btrfs-zero-log.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2014-10-31 14:01:25 -0400
committerDavid Sterba <dsterba@suse.cz>2014-11-14 11:00:32 +0100
commit2d80d0d645d1b72523ab4d8bf053ad91c90665ca (patch)
treea50569802be2a92c167cf2f9faffdef13cece859 /btrfs-zero-log.c
parent748f4dedbbee2049dce950c7712ab744fbe83fec (diff)
downloadbtrfs-progs-2d80d0d645d1b72523ab4d8bf053ad91c90665ca.tar.gz
btrfs-progs-2d80d0d645d1b72523ab4d8bf053ad91c90665ca.tar.xz
btrfs-progs-2d80d0d645d1b72523ab4d8bf053ad91c90665ca.zip
Btrfs-progs: add a message to know zero log ran successfully
If there are errors when opening the fs because of PARTIAL we could think that the zero-log didn't actually work. Add a printf so we know that it was successfull. 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/btrfs-zero-log.c b/btrfs-zero-log.c
index 46c705c..4154175 100644
--- a/btrfs-zero-log.c
+++ b/btrfs-zero-log.c
@@ -71,6 +71,7 @@ int main(int ac, char **av)
btrfs_set_super_log_root_level(root->fs_info->super_copy, 0);
btrfs_commit_transaction(trans, root);
close_ctree(root);
+ printf("Log root zero'ed\n");
out:
return !!ret;
}