From: Joey Hess Date: Tue, 28 Mar 2023 16:38:47 +0000 (-0400) Subject: fix comment X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~50^2~62 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d2d7d766d8fec7be7c06ecfbb50e903c55488fa2;p=git-annex.git fix comment --- diff --git a/Utility/CopyFile.hs b/Utility/CopyFile.hs index 59e1ca278d..207153d1b6 100644 --- a/Utility/CopyFile.hs +++ b/Utility/CopyFile.hs @@ -61,9 +61,6 @@ copyFileExternal meta src dest = do - - The dest file must not exist yet, or it will fail to make a CoW copy, - 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 @@ -83,6 +80,9 @@ copyCoW meta src dest return ok | otherwise = return False where + -- Note that in coreutils 9.0, cp uses CoW by default, + -- without needing an option. This s only needed to support + -- older versions. params = Param "--reflink=always" : copyMetaDataParams meta {- Create a hard link if the filesystem allows it, and fall back to copying