diff options
author | http://joeyh.name/ <joey@web> | 2013-06-11 15:30:14 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2013-06-11 15:30:14 +0000 |
commit | ee15dc6db992ca82ec738c8b5f1024128daabc0a (patch) | |
tree | c0160ecda59b7d809353d21916e486a07fc4fd55 /doc/bugs | |
parent | dd616e6f1957b6f68c4baec2cec46e424a20e135 (diff) |
Added a comment
Diffstat (limited to 'doc/bugs')
-rw-r--r-- | doc/bugs/file_access__47__locking_issues_with_the_assitant/comment_9_961c8f968eff0b39a85b607ee3f7630d._comment | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/bugs/file_access__47__locking_issues_with_the_assitant/comment_9_961c8f968eff0b39a85b607ee3f7630d._comment b/doc/bugs/file_access__47__locking_issues_with_the_assitant/comment_9_961c8f968eff0b39a85b607ee3f7630d._comment new file mode 100644 index 000000000..419abf698 --- /dev/null +++ b/doc/bugs/file_access__47__locking_issues_with_the_assitant/comment_9_961c8f968eff0b39a85b607ee3f7630d._comment @@ -0,0 +1,16 @@ +[[!comment format=mdwn + username="http://joeyh.name/" + nickname="joey" + subject="comment 9" + date="2013-06-11T15:30:14Z" + content=""" +My guess about the write bit seems to be spot on. Which does mean it's a race, just one that happens to be easy to reproduce. It does not happen every time, but 1 time out of 10 or more often. + +You can try commenting out the `preventWrite` line in `Command/Add.hs` and rebuilding to see it fix it for you too. I will need to think long and hard about how to make files be ingested safely without turning off the write bit. But, I had been meaning to work on that at some point anyway, so good to have this bug to make it happen. + +I instrumented latexmk's call to `$out_handle->open` to see how it's failing: + +open failed: Permission denied 256 + +Which confirms the problem. It seems that it first creates the file, and then closes it, and then re-opens it to write to it some more. git-annex gets in between these two calls and messes up the permissions behind its back. +"""]] |