btrfs-progs icon indicating copy to clipboard operation
btrfs-progs copied to clipboard

send: better error message after find_mount_root fails

Open kdave opened this issue 2 years ago • 1 comments

Copy todo item from wiki: Better error message in case of error when sending. Especially "ERROR: find_mount_root failed on %s:" is not of any help.

file: cmds/send.c, find_mount_root fails called from cmd_send

kdave avatar Jun 02 '22 15:06 kdave

I've checked find_mount_root() code. It seems that if there is an error (ret<0), ret should be comes from strdup or realpath longest_match. longest_match is from mount entry. I think that ENOMEM is the only error can be occur. Are there any other errors to print?

realwakka avatar Aug 09 '22 09:08 realwakka