<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - btrfs_subvol_snapshot() broken"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90803">90803</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>btrfs_subvol_snapshot() broken
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dh.herrmann@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=116211" name="attach_116211" title="strace log">attachment 116211</a> <a href="attachment.cgi?id=116211&action=edit" title="strace log">[details]</a></span>
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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>