-}
{-# LANGUAGE CPP #-}
+{-# LANGUAGE OverloadedStrings #-}
module Annex.Content (
inAnnex,
-- change while the transfer is in progress, so
-- generate an inode cache for the starting
-- content.
- then maybeToList <$>
- withTSDelta (liftIO . genInodeCache f)
- else pure cache
+ then do
+ fastDebug "Annex.Content" ("found no inode cache for " ++ show f)
+ maybeToList <$>
+ withTSDelta (liftIO . genInodeCache f)
+ else do
+ fastDebug "Annex.Content" ("found inode cache for " ++ show f)
+ pure cache
return $ if null cache'
then Nothing
else Just (fromRawFilePath f, sameInodeCache f cache')
I've added some debugging now, so --debug with a fresh git-annex build
should explain what's going on with the stats.
-Use -c annex.debugfilter=Annex.InodeSentinal
+Use -c annex.debugfilter=Annex.InodeSentinal,Annex.Content
to limit debug output to the relevant ones.
"""]]