From: Cerem Cem ASLAN <ceremcem@ceremcem.net>
To: linux-btrfs@vger.kernel.org
Subject: Fwd: No such file or directory error
Date: Fri, 16 Jun 2017 09:29:08 +0300 [thread overview]
Message-ID: <CAN4oSBeBZLu1NBLg1E4VCqT3qQND9bexb26ZLJLUpvE_aqe1MA@mail.gmail.com> (raw)
In-Reply-To: <CAN4oSBejGBYnv-8XWzhvupkdwKooC==KaXLUhAwAAxn0Q8iM3Q@mail.gmail.com>
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`?
next parent reply other threads:[~2017-06-16 6:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAN4oSBejGBYnv-8XWzhvupkdwKooC==KaXLUhAwAAxn0Q8iM3Q@mail.gmail.com>
2017-06-16 6:29 ` Cerem Cem ASLAN [this message]
2017-06-16 16:08 ` No such file or directory error Cerem Cem ASLAN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAN4oSBeBZLu1NBLg1E4VCqT3qQND9bexb26ZLJLUpvE_aqe1MA@mail.gmail.com \
--to=ceremcem@ceremcem.net \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).