]> git.ipfire.org Git - thirdparty/systemd.git/commit
btrfs-util: when snapshotting make sure we don't descent into subvolumes we just... 208/head
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Jun 2015 15:53:50 +0000 (17:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 15 Jun 2015 16:11:11 +0000 (18:11 +0200)
commit90578cbd71812c0f1b6d151c708cb00bbb359053
treef66c6c9254ea001a2199776f668f65b98e8931f8
parent0c33502bed83f2775d77c992fe621ec85e75ab2a
btrfs-util: when snapshotting make sure we don't descent into subvolumes we just created

We already had a safety check in place that we don't end up descending
to the original subvolume again, but we also should avoid descending in
the newly created one.

This is particularly important if we make a snapshot below its source,
like we do in "systemd-nspawn --ephemeral -D /".

Closes https://bugs.freedesktop.org/show_bug.cgi?id=90803
src/basic/btrfs-util.c
src/basic/btrfs-util.h