summaryrefslogtreecommitdiff
path: root/Command/Fsck.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-02-14 17:04:09 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-02-14 17:04:09 -0400
commitb2ae82e9cb2357b38e1c80f011d49bdd9d9f9e2d (patch)
tree30ad5d7415cfdfced4aef91ac3cb2217fbfd0da1 /Command/Fsck.hs
parent30bb1078c40bb752d82350d517dffcb75df30baa (diff)
files with only 1 linkCount may still be unlocked
When on crippled filesystem, or without annex.thin set.
Diffstat (limited to 'Command/Fsck.hs')
-rw-r--r--Command/Fsck.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Command/Fsck.hs b/Command/Fsck.hs
index 410e41562..afc0f6307 100644
--- a/Command/Fsck.hs
+++ b/Command/Fsck.hs
@@ -588,7 +588,6 @@ getKeyStatus key = ifM isDirect
( return KeyUnlocked
, catchDefaultIO KeyMissing $ do
obj <- calcRepo $ gitAnnexLocation key
- unlocked <- ((> 1) . linkCount <$> liftIO (getFileStatus obj))
- <&&> (not . null <$> Database.Keys.getAssociatedFiles key)
+ unlocked <- not . null <$> Database.Keys.getAssociatedFiles key
return $ if unlocked then KeyUnlocked else KeyLocked
)