btrfs-progs: send: always print a space after path in dump
authorEvan Danaher <github@edanaher.net>
Tue, 11 Apr 2017 16:33:40 +0000 (12:33 -0400)
committerDavid Sterba <dsterba@suse.com>
Wed, 19 Apr 2017 17:33:43 +0000 (19:33 +0200)
commitbeb924e12d33f11d76c54fad003c6ae3adc9fcc7
tree19110e9623489d8886ad5107d341f889fdd61ae7
parent57909d702c4d636a5f733309202c36fe006d84e9
btrfs-progs: send: always print a space after path in dump

I was shocked to discover that 'btrfs receive --dump' doesn't print a
space after long filenames, so it runs together into the metadata; for
example:

truncate        ./20-00-03/this-name-is-32-characters-longsize=0

This is a trivial patch to add a single space unconditionally, so the
result is the following:

truncate        ./20-00-03/this-name-is-32-characters-long size=0

I suppose this is technically a breaking change, but it seems unlikely
to me that anyone would depend on the existing behavior given how
unfriendly it is.

Signed-off-by: Evan Danaher <github@edanaher.net>
Reviewed-by: Noah Massey <noah.massey@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
send-dump.c