From b5c8ba7db3ea2eb4f1cd28e49cadb5fd348ca738 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 9 Dec 2015 15:42:16 -0400 Subject: move InodeSentinal from direct mode code to its own module Will be used outside of direct mode for v6 unlocked files, and is already used outside of direct mode when adding files to annex. --- Upgrade/V5.hs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Upgrade') diff --git a/Upgrade/V5.hs b/Upgrade/V5.hs index cf273bb16..e4501302d 100644 --- a/Upgrade/V5.hs +++ b/Upgrade/V5.hs @@ -9,10 +9,17 @@ module Upgrade.V5 where import Common.Annex import Config +import Annex.InodeSentinal upgrade :: Bool -> Annex Bool upgrade automatic = do unless automatic $ showAction "v5 to v6" configureSmudgeFilter + -- Inode sentinal file was only used in direct mode and when + -- locking down files as they were added. In v6, it's used more + -- extensively, so make sure it exists, since old repos that didn't + -- use direct mode may not have created it. + unlessM (isDirect) $ + createInodeSentinalFile True return True -- cgit v1.2.3