]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: Don't explicity disable copy-on-write when copying images 33825/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 24 Jul 2024 13:04:43 +0000 (15:04 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 25 Jul 2024 09:56:07 +0000 (11:56 +0200)
commit42e9288180ce37abd86c58774950636ebce35432
treed108809a743beeaf948aaf526ce177c47e57fb78
parent2356104efcc599439c887b087da83fbeca1fa9a6
tree-wide: Don't explicity disable copy-on-write when copying images

Since the copy helpers now copy file attributes as well, let's not
explicitly disable copy-on-write anymore when we copy an image. If
the source already has copy-on-write disabled, the copy will have it
disabled as well. Otherwise, the copy will also have copy-on-write
enabled.

This makes sure that reflinks always work as reflink is only supported
if both source and target are copy-on-write or both source and target
are not copy-on-write.
src/core/exec-invoke.c
src/nspawn/nspawn.c
src/shared/discover-image.c