Direct mode: Support filesystems like FAT which can change their inodes each time they are mounted.
This commit is contained in:
parent
0f4cc559a7
commit
624e34649f
7 changed files with 69 additions and 15 deletions
|
@ -13,6 +13,8 @@ module Locations (
|
|||
gitAnnexLocation,
|
||||
gitAnnexMapping,
|
||||
gitAnnexInodeCache,
|
||||
gitAnnexInodeSentinal,
|
||||
gitAnnexInodeSentinalCache,
|
||||
annexLocations,
|
||||
annexLocation,
|
||||
gitAnnexDir,
|
||||
|
@ -128,6 +130,12 @@ gitAnnexInodeCache key r = do
|
|||
loc <- gitAnnexLocation key r
|
||||
return $ loc ++ ".cache"
|
||||
|
||||
gitAnnexInodeSentinal :: Git.Repo -> FilePath
|
||||
gitAnnexInodeSentinal r = gitAnnexDir r </> "sentinal"
|
||||
|
||||
gitAnnexInodeSentinalCache :: Git.Repo -> FilePath
|
||||
gitAnnexInodeSentinalCache r = gitAnnexInodeSentinal r ++ ".cache"
|
||||
|
||||
{- The annex directory of a repository. -}
|
||||
gitAnnexDir :: Git.Repo -> FilePath
|
||||
gitAnnexDir r = addTrailingPathSeparator $ Git.localGitDir r </> annexDir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue