Fwd: No such file or directory error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux