btrfs send snapshot gives ERROR: could not resolve root_id
Hi Jolla-Team!
I wanted to send my btrfs snapshot from the phone to a debian vm and got the following error, that may be related to an old kernel/btrfs version.
devel-su
btrfs subvolume snapshot -r / /backup_0
[root@localhost nemo]# btrfs send /backup_0 | ssh 192.168.2.8 -p 9000 btrfs receive /home
At subvol /backup_0
ERROR: could not resolve root_id for /backup_0
Sending / Receiving BTRFS-Snapshots between 2 Debian-VMs in VirtualBox (NAT + PortForwarding) is working without a problem:
Linux debianbtrfs 3.12-1-486 #1 Debian 3.12.6-2 (2013-12-29) i686 GNU/Linux
Linux debianBTRFS2 3.12-1-486 #1 Debian 3.12.6-2 (2013-12-29) i686 GNU/Linux
VM1
root@debianbtrfs:/# btrfs subvolume snapshot -r /home /home/snap1
Create a readonly snapshot of '/home' in '/home/snap1'
root@debianbtrfs:/# btrfs send /home/snap1 | ssh 10.0.2.3 -p 9000 btrfs receive /home/
At subvol /home/snap1
root@10.0.2.3's password:
At subvol snap1
VM2
root@debianBTRFS2:/home# ls
snap1 user
Same problem for me
gcobb ( 2014-03-20 23:53:31 +0200 )editsame issue... it appears there are patches to btrfs-progs that fix this... perhaps those patches (or a newer version of btrfs-progs) can be done? send patch , receive patch
AL13N ( 2014-06-23 23:59:35 +0200 )editI tried an updated version from https://build.merproject.org/package/binaries/nemo:devel:mw/btrfs-progs?repository=latest_armv7hl but that fails too. Error message "ERROR: send ioctl failed with -25: Inappropriate ioctl for device". So either there's too much version mismatch between the userspace (3.16) and kernel (3.4+Jolla backports), or there's yet something missing from the kernel space required to perform a send.
Ballock ( 2014-10-21 23:36:27 +0200 )editAL13N: I just found the sources. It wasn't easy, but those are public, of course. The bad news is that btrfs-progs-0.20rc1+git358.4-1.1.2.armv7hl already has the patches you mention applied. Let me know if you have any other patch ideas.
Ballock ( 2014-10-23 00:31:28 +0200 )editis that the version that we're actually using, or is that the version in nemo that needs to be pushed to jolla internally? did you build and check that version too? i'm saying that, because it looks pretty much exactly what that patch is...
AL13N ( 2014-10-23 13:05:01 +0200 )edit