summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-03-01 16:24:04 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-03-01 16:24:04 -0400
commit6674baaf7c0303c6e0522c339c2216cad3332ac2 (patch)
treec3d75a0f1949e626b475a83d0d96d17b57d23e5f /doc
parent7133841354733d05ec063dfe789631dff13c425b (diff)
comment
Diffstat (limited to 'doc')
-rw-r--r--doc/bugs/git-annex:_content_is_locked__while_trying_to_move_under_NFS_and_pidlock/comment_8_853bc273b19bd6d84ca8f5da6c3dfb56._comment20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/bugs/git-annex:_content_is_locked__while_trying_to_move_under_NFS_and_pidlock/comment_8_853bc273b19bd6d84ca8f5da6c3dfb56._comment b/doc/bugs/git-annex:_content_is_locked__while_trying_to_move_under_NFS_and_pidlock/comment_8_853bc273b19bd6d84ca8f5da6c3dfb56._comment
new file mode 100644
index 000000000..d24d78d51
--- /dev/null
+++ b/doc/bugs/git-annex:_content_is_locked__while_trying_to_move_under_NFS_and_pidlock/comment_8_853bc273b19bd6d84ca8f5da6c3dfb56._comment
@@ -0,0 +1,20 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 8"""
+ date="2016-03-01T20:17:35Z"
+ content="""
+That ssh lock file is created by this code:
+
+ -- The posix lock file is created even when using pid locks, in order to
+ -- avoid complicating any code that might expect to be able to see that
+ -- lock file. But, it's not locked.
+ dummyPosixLock :: Maybe FileMode -> LockFile -> IO ()
+ dummyPosixLock m f = closeFd =<< openLockFile ReadLock m f
+
+But, that does not ever actually take a lock on the file, so
+NFS should not make its .nfs thing in this case. Unless NFS does it when a
+FD is simply opened with close-on-exec set.
+
+Can you get a strace of the creation of files under .git/annex/ssh/
+that result in these .nfs things?
+"""]]