]> git.ipfire.org Git - thirdparty/systemd.git/commit
btrfs-util: try unlinkat(AT_REMOVEDIR) before resorting to btrfs ioctls
authorLennart Poettering <lennart@poettering.net>
Tue, 15 Jul 2025 16:29:03 +0000 (18:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Sep 2025 15:58:56 +0000 (17:58 +0200)
commit265b3fbd52d3f93b4abac70b29d6ba484e6f2e1a
tree4ff22a962e0bed187a2208cfecc50f4cd995b6f6
parent07345762c8368142bf80eabf746ec98743c1421f
btrfs-util: try unlinkat(AT_REMOVEDIR) before resorting to btrfs ioctls

An empty btrfs subvolume can always be removed without privs, hence try
to use unlinkat() first.
src/shared/btrfs-util.c