Bug 90803

Summary: btrfs_subvol_snapshot() broken
Product: systemd Reporter: David Herrmann <dh.herrmann>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium CC: dh.herrmann
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: strace log

Description David Herrmann 2015-06-01 17:06:02 UTC
Created attachment 116211 [details]
strace log

Hi

Running `systemd-nspawn -D / -xb` produces the following error for me:

  david@david-t2 ~/dev/systemd $ sudo ./systemd-nspawn -D / -xb
  Failed to create snapshot /.#a726c057b3fe24c6 from /: No such file or directory

I tracked this down to btrfs_subvol_snapshot(), and subvol_snapshot_children() in particular. If called with BTRFS_SNAPSHOT_RECURSIVE, it fails in the recursion step.

My root system consists of the root snapshot at '/', and a btrfs snapshot at '/var/lib/machines'. The strace output is attached.

Thanks
David
Comment 1 David Herrmann 2015-06-15 17:05:05 UTC
Fixed upstream by Lennart in 90578cbd71812c0f1b6d151c708cb00bbb359053.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.