btrfs receive fails for second snapshot

Bug #1195245 reported by Miguel Negrao
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
btrfs-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

See upstream bug report: https://bugzilla.kernel.org/show_bug.cgi?id=60081
Confirmed broken in
Btrfs v0.20-rc1, working on Btrfs v0.20-rc1-335-gf00dd83 (from git). Perhaps ubuntu's btrfs-tools package should pull upstream ?

Info from bug report above:

sudo btrfs subvolume create test
cd test
nano a.txt
cd ..
sudo btrfs subvolume snapshot -r test testBackup1
sudo btrfs send testBackup1 > '/media/miguel/btrfs_backup/file1'
cd test
nano b.txt
cd ..
sudo btrfs subvolume snapshot -r test testBackup2
sudo btrfs send -p testBackup1 testBackup2 > '/media/miguel/btrfs_backup/file2'
sudo btrfs receive '/media/miguel/btrfs_backup/testBtrfsBackups' <
'/media/miguel/btrfs_backup/file1'
sudo btrfs receive '/media/miguel/btrfs_backup/testBtrfsBackups' <
'/media/miguel/btrfs_backup/file2'

The last command gives the error:
ERROR: open testBtrfsBackups/testBackup1 failed. No such file or directory

But the subvolume is there:

miguel@miguel-MacBookPro:/media/miguel/btrfs_backup/testBtrfsBackups$ ls -l
total 0
drwxr-xr-x 1 miguel miguel 10 Jun 25 09:59 testBackup1

The files file1 and file2 created are attached in case someone want to try
doing the receive part.

I'm using ubuntu 13.04, 3.8.0-25-lowlatency #17-Ubuntu SMP PREEMPT Sat Jun 8
15:59:57 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux.

Btrfs v0.20-rc1

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: btrfs-tools 0.19+20130117-0ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-22.15-lowlatency 3.8.11
Uname: Linux 3.8.0-22-lowlatency x86_64
ApportVersion: 2.9.2-0ubuntu8.1
Architecture: amd64
Date: Thu Jun 27 11:17:56 2013
InstallationDate: Installed on 2013-03-29 (89 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130328)
MarkForUpload: True
SourcePackage: btrfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Miguel Negrao (miguel-negrao) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in btrfs-tools (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.