From 6de57642f4d519bc322a561148bfaefa814afa61 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 30 Sep 2021 14:12:58 -0400 Subject: [PATCH] note about coreutils 9.0 supporting CoW by default --- Utility/CopyFile.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Utility/CopyFile.hs b/Utility/CopyFile.hs index e91986593a..9c93e70199 100644 --- a/Utility/CopyFile.hs +++ b/Utility/CopyFile.hs @@ -59,7 +59,11 @@ copyFileExternal meta src dest = do - an efficient copy of a file. Otherwise, returns False. - - The dest file must not exist yet, or it will fail to make a CoW copy, - - and will return False. -} + - and will return False. + - + - Note that in coreutil 9.0, cp uses CoW by default, without needing an + - option. This code is only needed to support older versions. + -} copyCoW :: CopyMetaData -> FilePath -> FilePath -> IO Bool copyCoW meta src dest | BuildInfo.cp_reflink_supported = do