Wang Shilong <[email protected]> writes:
> Hello Michael,
>
>> I built the new btrfs-progs 3.12 recently. I note that the version
>> information doesn't seem to match this:
>>
>> # ./btrfs --version
>> Btrfs v0.20-rc1-358-g194aa4a
>>
>> Regardless, I was trying to use btrfs send (which worked in the older
>> btrfs), and failed. Here's an example:
>>
>> # ./btrfs send -vvv -p /snapshots/bo /snapshots/bp > /dev/null
>> At subvol /snapshots/bp
>> ERROR: open @/snapshots/bp failed. No such file or directory
>>
>> Any idea what might be going on here?
>>
>> Here's the volume information:
>>
>> # ./btrfs sub show /
>> /
>> Name: @
>> uuid: e5e505d6-1309-8447-b51e-73f08c9401d1
>> Parent uuid: 156f93b9-1175-dc42-a1ee-65c00c5dcc2a
>> Creation time: 2013-07-17 20:44:46
>> Object ID: 259
>> Generation (Gen): 296321
>> Gen at creation: 20
>> Parent: 5
>> Top Level: 5
>> Flags: -
>> Snapshot(s):
>> snapshots/bo
>> snapshots/bp
>>
>> Kernel information:
>
> Here it seemed that you changed your default sub-volume.(259 not 5)
> I sent a patch before to fix this problem, it has not been pushed into
> chris's master branch, patch url is:
>
> https://patchwork.kernel.org/patch/3258971/
>
> But is has been pushed into david's latest integration branch , you
> can pull from:
>
> git pull http://github.com/kdave/btrfs-progs.git integration-20131211
After compiling this version the above tests works. Now, however, the
receive fails:
# ./btrfs send -p /snapshots/bo /snapshots/bp | ./btrfs receive
/backup/snapshots/root/
At subvol /snapshots/bp
At snapshot bp
ioctl(BTRFS_IOC_TREE_SEARCH, uuid, key 48f0ebae83fd32f1, UUID_KEY,
90139d8200afeaab) ret=-1, error: No such file or directory
ioctl(BTRFS_IOC_TREE_SEARCH, uuid, key 48f0ebae83fd32f1, UUID_KEY,
90139d8200afeaab) ret=-1, error: No such file or directory
ERROR: could not find parent subvolume
More volume information:
# ./btrfs sub show /backup/snapshots/root/bo
/backup/snapshots/root/bo
Name: bo
uuid: 5e15ef24-f2d0-194f-886d-3f7afc7413a4
Parent uuid: 9a226af3-8497-744b-90f7-d7e54d58946d
Creation time: 2013-12-13 17:51:57
Object ID: 1030
Generation (Gen): 1046
Gen at creation: 1042
Parent: 5
Top Level: 5
Flags: readonly
Snapshot(s):
# ./btrfs sub show /snapshots/bo
/snapshots/bo
Name: bo
uuid: f132fd83-aeeb-f048-abea-af00829d1390
Parent uuid: e5e505d6-1309-8447-b51e-73f08c9401d1
Creation time: 2013-12-13 17:50:15
Object ID: 404
Generation (Gen): 296977
Gen at creation: 291623
Parent: 259
Top Level: 259
Flags: readonly
Snapshot(s):
# ./btrfs sub show /snapshots/bp
/snapshots/bp
Name: bp
uuid: 6f73d3f2-5f9b-4944-b2d2-3003331b2d10
Parent uuid: e5e505d6-1309-8447-b51e-73f08c9401d1
Creation time: 2013-12-15 22:24:57
Object ID: 405
Generation (Gen): 296977
Gen at creation: 296301
Parent: 259
Top Level: 259
Flags: readonly
Snapshot(s):
--
Michael Welsh Duggan
([email protected])
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html