Btrfs-progs: add a message to know zero log ran successfully
authorJosef Bacik <jbacik@fb.com>
Fri, 31 Oct 2014 18:01:25 +0000 (14:01 -0400)
committerDavid Sterba <dsterba@suse.cz>
Fri, 14 Nov 2014 10:00:32 +0000 (11:00 +0100)
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>
btrfs-zero-log.c

index 46c705c..4154175 100644 (file)
@@ -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;
 }