* [bug] btrfs send -e option always fails ERROR: unexpected EOF in stream.
@ 2016-01-23 23:48 Chris Murphy
2016-01-23 23:55 ` Hugo Mills
0 siblings, 1 reply; 4+ messages in thread
From: Chris Murphy @ 2016-01-23 23:48 UTC (permalink / raw)
To: Btrfs BTRFS
https://bugzilla.kernel.org/show_bug.cgi?id=111221
4.4.0-1.fc24.x86_64
btrfs-progs-4.3.1-1.fc23.x86_64
[...snip...]
BTRFS_IOC_SEND returned 0
joining genl thread
At subvol testsub.1
ERROR: parent determination failed for 0
chown temp/cockpit-shell-0.91-1.fc23.noarch.rpm - uid=0, gid=0
chmod temp/cockpit-shell-0.91-1.fc23.noarch.rpm - mode=0644
utimes temp/cockpit-shell-0.91-1.fc23.noarch.rpm
mkfile o270-134474-0
rename o270-134474-0 -> temp/cockpit-networkmanager-0.91-1.fc23.noarch.rpm
utimes temp
set_xattr temp/cockpit-networkmanager-0.91-1.fc23.noarch.rpm -
name=security.selinux data_len=38
data=unconfined_u:object_r:admin_home_t:s0
truncate temp/cockpit-networkmanager-0.91-1.fc23.noarch.rpm size=37322
chown temp/cockpit-networkmanager-0.91-1.fc23.noarch.rpm - uid=0, gid=0
chmod temp/cockpit-networkmanager-0.91-1.fc23.noarch.rpm - mode=0644
utimes temp/cockpit-networkmanager-0.91-1.fc23.noarch.rpm
ERROR: unexpected EOF in stream.
The same ERROR messages happens even if I use -p to specify the parent.
Sending conventionally one at a time with -p works OK.
--
Chris Murphy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [bug] btrfs send -e option always fails ERROR: unexpected EOF in stream.
2016-01-23 23:48 [bug] btrfs send -e option always fails ERROR: unexpected EOF in stream Chris Murphy
@ 2016-01-23 23:55 ` Hugo Mills
2016-01-24 0:08 ` Chris Murphy
0 siblings, 1 reply; 4+ messages in thread
From: Hugo Mills @ 2016-01-23 23:55 UTC (permalink / raw)
To: Chris Murphy; +Cc: Btrfs BTRFS
[-- Attachment #1: Type: text/plain, Size: 1744 bytes --]
On Sat, Jan 23, 2016 at 04:48:26PM -0700, Chris Murphy wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=111221
>
> 4.4.0-1.fc24.x86_64
> btrfs-progs-4.3.1-1.fc23.x86_64
>
>
>
> [...snip...]
> BTRFS_IOC_SEND returned 0
> joining genl thread
> At subvol testsub.1
> ERROR: parent determination failed for 0
This looks to me like a known and somewhat awkward bug/misfeature
where the mountpoint containing either the subvol being sent or the
target location for the receive is not a top-level mount, which causes
this error. i.e., this will (I think) fail:
# mount -o subvol=@foo /dev/sda1 /mnt
# btrfs send /mnt/@whatever | ...
Can you try again from within a subvolid=0 mount?
Hugo.
> chown temp/cockpit-shell-0.91-1.fc23.noarch.rpm - uid=0, gid=0
> chmod temp/cockpit-shell-0.91-1.fc23.noarch.rpm - mode=0644
> utimes temp/cockpit-shell-0.91-1.fc23.noarch.rpm
> mkfile o270-134474-0
> rename o270-134474-0 -> temp/cockpit-networkmanager-0.91-1.fc23.noarch.rpm
> utimes temp
> set_xattr temp/cockpit-networkmanager-0.91-1.fc23.noarch.rpm -
> name=security.selinux data_len=38
> data=unconfined_u:object_r:admin_home_t:s0
> truncate temp/cockpit-networkmanager-0.91-1.fc23.noarch.rpm size=37322
> chown temp/cockpit-networkmanager-0.91-1.fc23.noarch.rpm - uid=0, gid=0
> chmod temp/cockpit-networkmanager-0.91-1.fc23.noarch.rpm - mode=0644
> utimes temp/cockpit-networkmanager-0.91-1.fc23.noarch.rpm
> ERROR: unexpected EOF in stream.
>
> The same ERROR messages happens even if I use -p to specify the parent.
>
> Sending conventionally one at a time with -p works OK.
>
>
--
Hugo Mills | Great films about cricket: The Third Man
hugo@... carfax.org.uk |
http://carfax.org.uk/ |
PGP: E2AB1DE4 |
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [bug] btrfs send -e option always fails ERROR: unexpected EOF in stream.
2016-01-23 23:55 ` Hugo Mills
@ 2016-01-24 0:08 ` Chris Murphy
2016-01-24 0:12 ` Chris Murphy
0 siblings, 1 reply; 4+ messages in thread
From: Chris Murphy @ 2016-01-24 0:08 UTC (permalink / raw)
To: Hugo Mills, Chris Murphy, Btrfs BTRFS
On Sat, Jan 23, 2016 at 4:55 PM, Hugo Mills <hugo@carfax.org.uk> wrote:
> On Sat, Jan 23, 2016 at 04:48:26PM -0700, Chris Murphy wrote:
>> https://bugzilla.kernel.org/show_bug.cgi?id=111221
>>
>> 4.4.0-1.fc24.x86_64
>> btrfs-progs-4.3.1-1.fc23.x86_64
>>
>>
>>
>> [...snip...]
>> BTRFS_IOC_SEND returned 0
>> joining genl thread
>> At subvol testsub.1
>> ERROR: parent determination failed for 0
>
> This looks to me like a known and somewhat awkward bug/misfeature
> where the mountpoint containing either the subvol being sent or the
> target location for the receive is not a top-level mount, which causes
> this error. i.e., this will (I think) fail:
>
> # mount -o subvol=@foo /dev/sda1 /mnt
> # btrfs send /mnt/@whatever | ...
>
> Can you try again from within a subvolid=0 mount?
No change in behavior.
/dev/mapper/luks on /brick1 type btrfs
(rw,relatime,seclabel,space_cache,subvolid=5,subvol=/)
/dev/sda1 on /mnt type btrfs
(rw,relatime,seclabel,space_cache,subvolid=5,subvol=/)
[root@f23s ~]# btrfs send -e /mnt/root23s/root/testsub.* | btrfs
receive /brick1/
At subvol /mnt/root23s/root/testsub.0
At subvol testsub.0
At subvol /mnt/root23s/root/testsub.1
ERROR: parent determination failed for 0
ERROR: unexpected EOF in stream.
[root@f23s ~]# btrfs send -e /mnt/root23s/root/testsub.0
/mnt/root23s/root/testsub.1 /mnt/root23s/root/testsub.2
/mnt/root23s/root/testsub.3 /mnt/root23s/root/testsub.4 | btrfs
receive /brick1/
At subvol /mnt/root23s/root/testsub.0
At subvol testsub.0
At subvol /mnt/root23s/root/testsub.1
ERROR: parent determination failed for 0
ERROR: unexpected EOF in stream.
Chris Murphy
--
Chris Murphy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [bug] btrfs send -e option always fails ERROR: unexpected EOF in stream.
2016-01-24 0:08 ` Chris Murphy
@ 2016-01-24 0:12 ` Chris Murphy
0 siblings, 0 replies; 4+ messages in thread
From: Chris Murphy @ 2016-01-24 0:12 UTC (permalink / raw)
To: Chris Murphy; +Cc: Hugo Mills, Btrfs BTRFS
Also fails using this form:
[root@f23s ~]# btrfs send /mnt/root23s/root/testsub.0 | btrfs receive /brick1/
At subvol /mnt/root23s/root/testsub.0
At subvol testsub.0
[root@f23s ~]# btrfs send -p /mnt/root23s/root/testsub.0 -e
/mnt/root23s/root/testsub.1 /mnt/root23s/root/testsub.2
/mnt/root23s/root/testsub.3 /mnt/root23s/root/testsub.4 | btrfs
receive /brick1/
At subvol /mnt/root23s/root/testsub.1
At snapshot testsub.1
At subvol /mnt/root23s/root/testsub.2
ERROR: parent determination failed for 0
ERROR: unexpected EOF in stream.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-01-24 0:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-23 23:48 [bug] btrfs send -e option always fails ERROR: unexpected EOF in stream Chris Murphy
2016-01-23 23:55 ` Hugo Mills
2016-01-24 0:08 ` Chris Murphy
2016-01-24 0:12 ` Chris Murphy
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).