contains user side functions to be added in btrfs-progs/cmds-send.c