When specifying -vv print information about received write and clone commands too, as we do this for other commands already and it's very useful for debugging and troubleshooting.
Signed-off-by: Filipe David Borba Manana <fdman...@gmail.com> --- cmds-receive.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmds-receive.c b/cmds-receive.c index 3f30066..7a23823 100644 --- a/cmds-receive.c +++ b/cmds-receive.c @@ -636,6 +636,10 @@ static int process_write(const char *path, const void *data, u64 offset, u64 pos = 0; int w; + if (g_verbose >= 2) + fprintf(stderr, "write %s, offset %llu, len %llu\n", + path, offset, len); + ret = open_inode_for_write(r, full_path); if (ret < 0) goto out; @@ -672,6 +676,11 @@ static int process_clone(const char *path, u64 offset, u64 len, char *full_clone_path = NULL; int clone_fd = -1; + if (g_verbose >= 2) + fprintf(stderr, + "clone %s, offset %llu, len %llu, clone path %s, clone offset %llu\n", + path, offset, len, clone_path, clone_offset); + ret = open_inode_for_write(r, full_path); if (ret < 0) goto out; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html