linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fwd: No such file or directory error
       [not found] <CAN4oSBejGBYnv-8XWzhvupkdwKooC==KaXLUhAwAAxn0Q8iM3Q@mail.gmail.com>
@ 2017-06-16  6:29 ` Cerem Cem ASLAN
  2017-06-16 16:08   ` Cerem Cem ASLAN
  0 siblings, 1 reply; 2+ messages in thread
From: Cerem Cem ASLAN @ 2017-06-16  6:29 UTC (permalink / raw)
  To: linux-btrfs

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`?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: No such file or directory error
  2017-06-16  6:29 ` Fwd: No such file or directory error Cerem Cem ASLAN
@ 2017-06-16 16:08   ` Cerem Cem ASLAN
  0 siblings, 0 replies; 2+ messages in thread
From: Cerem Cem ASLAN @ 2017-06-16 16:08 UTC (permalink / raw)
  To: linux-btrfs

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@ceremcem.net>:
> 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`?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-16 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAN4oSBejGBYnv-8XWzhvupkdwKooC==KaXLUhAwAAxn0Q8iM3Q@mail.gmail.com>
2017-06-16  6:29 ` Fwd: No such file or directory error Cerem Cem ASLAN
2017-06-16 16:08   ` Cerem Cem ASLAN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).