1. Without fsync changes:
- Update cached metadata: FAILED (disconnected)
- Upload any book: FAILED (disconnected)
2. Commented first os.fsync:
/usr/lib/calibre/calibre/__init__.py (fsync)
Not enough, problem still exist.
Tested few times:
- Update cached metadata: OK
- Upload any book: FAILED (disconnected)
3. Commented another os.fsync:
/usr/lib/calibre/utils/filenames.py (case_preserving_open_file)
Tested few times:
- Update cached metadata: OK
- Upload any book(s): OK
Problem SOLVED by disable both os.fsync calls
PS. seems utime() is not enough and also second os.fsync call make problem when uploading books
|