init: When annex.pidlock is set, skip lock probing.
This commit is contained in:
parent
1d41ae5d2a
commit
2bff3b7c49
4 changed files with 17 additions and 4 deletions
|
@ -264,10 +264,12 @@ probeFifoSupport = do
|
|||
#endif
|
||||
|
||||
checkLockSupport :: Annex ()
|
||||
checkLockSupport = unlessM probeLockSupport $ do
|
||||
warning "Detected a filesystem without POSIX fcntl lock support."
|
||||
warning "Enabling annex.pidlock."
|
||||
setConfig (annexConfig "pidlock") (Git.Config.boolConfig True)
|
||||
checkLockSupport =
|
||||
unlessM (annexPidLock <$> Annex.getGitConfig) $
|
||||
unlessM probeLockSupport $ do
|
||||
warning "Detected a filesystem without POSIX fcntl lock support."
|
||||
warning "Enabling annex.pidlock."
|
||||
setConfig (annexConfig "pidlock") (Git.Config.boolConfig True)
|
||||
|
||||
checkFifoSupport :: Annex ()
|
||||
checkFifoSupport = unlessM probeFifoSupport $ do
|
||||
|
|
|
@ -24,6 +24,7 @@ git-annex (8.20200523) UNRELEASED; urgency=medium
|
|||
cleanup actions in separate job pool from uploads.
|
||||
* init: If lock probing stalls for a long time (eg a broken NFS server),
|
||||
display a message to let the user know what's taking so long.
|
||||
* init: When annex.pidlock is set, skip lock probing.
|
||||
|
||||
-- Joey Hess <id@joeyh.name> Tue, 26 May 2020 10:20:52 -0400
|
||||
|
||||
|
|
|
@ -214,3 +214,6 @@ At least adding some debug message before running the detection could be of help
|
|||
|
||||
[[!meta author=yoh]]
|
||||
[[!tag projects/datalad]]
|
||||
|
||||
> what I mentioned in the comments is [[done]] --[[Joey]]
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
[[!comment format=mdwn
|
||||
username="joey"
|
||||
subject="""comment 3"""
|
||||
date="2020-06-05T15:11:44Z"
|
||||
content="""
|
||||
Is this related to your other bug about something seeming to hang/stall?
|
||||
"""]]
|
Loading…
Reference in a new issue