Direct mode: No longer temporarily remove write permission bit of files when adding them.

This write permission frobbing is very appropriate in indirect mode,
since annexed objects are stored as immutably as can be managed. But not
in direct mode, where files should be able to be modified at any time.

There are already sufficient guards that there's no need to prevent a file
being written to while it's being ingested, in direct mode. The inode cache
will detect (most) types of modifications, and the add will fail. Then a
re-add should be done. The assistant should get another inotify change
event, and automatically add the new version of the file.
This commit is contained in:
Joey Hess 2013-06-12 14:02:31 -04:00
parent 1089734206
commit 6dcf21db93
3 changed files with 19 additions and 11 deletions

View file

@ -49,3 +49,6 @@ add www.cmt.mhs.man.ac.uk/admin_guide_cmt.log (checksum...) ok
# End of transcript or log.
"""]]
> Ok, I was able to remove the write bit fiddling in direct mode. [[done]]
> --[[Joey]]