Sorry for above post, the error is just because of passing the parent and current snapshots from different physical disks. 2017-06-16 9:29 GMT+03:00 Cerem Cem ASLAN <ceremcem@xxxxxxxxxxxx>: > Hello everybody, > > I'm facing with a "No such file or directory" issue which only occurs > if I use a `btrfs send -p myparent mysnap` line in a script and its > second call. Detailed description and error log is here: > https://github.com/ceremcem/smith-sync/issues/5 > > I use `btrfs send` command via a function: > > btrfs_send_diff () { > local parent=$1 > local current=$2 > if [[ -z $current ]]; then > echo_yellow "No parent specified, sending whole snapshot" > echo_red "parent: $parent, current: $current" > return 255 > current=$1 > btrfs send $current > else > echo_green "Sending difference between $parent and $current" > btrfs send -p $parent --no-data $current > /dev/null > if [[ $? != 0 ]]; then > echo_red "WE DETECT AN ERROR in ${FUNCNAME[0]}! parent: > $parent, curr: $current" > exit > else > btrfs send -p $parent $current > fi > fi > } > > > > Am I using `btrfs send` in a wrong way or is that a known issue with > `btrfs send`? -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
