]> git.ipfire.org Git - thirdparty/systemd.git/commit
rm-rf: refuse combining REMOVE_ONLY_DIRECTORIES and REMOVE_SUBVOLUME for now
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Mar 2019 15:09:49 +0000 (16:09 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 1 Apr 2019 20:40:05 +0000 (05:40 +0900)
commitc2f64c07c1dd317e5698b672a91bf8ba5726c948
treed1fcc708931b75b817d0d9f2b32f12d4fbbdb088
parentebf8d79a584f08240a4af8a12ce7d6378f785a03
rm-rf: refuse combining REMOVE_ONLY_DIRECTORIES and REMOVE_SUBVOLUME for now

It's not easy to implement such a combined operation race-freely since
dropping a subvolume will drop all its contents, including any
non-directories.

Hence, let's just not support this combination for now. Which isn't much
of a loss, since we never combine these flags anyway.
src/basic/rm-rf.c