mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
a4de767848
commit
5b1941a833
@ -670,6 +670,9 @@ def fsync(fileobj):
|
||||
# harmless filesystem activity, and who cares about performance.
|
||||
# See https://bugs.launchpad.net/calibre/+bug/1834641
|
||||
# and https://bugzilla.kernel.org/show_bug.cgi?id=203973
|
||||
# To check for the existence of the bug, simply run:
|
||||
# python -c "p = '/run/media/kovid/Kindle/driveinfo.calibre'; f = open(p, 'r+b'); os.fsync(f.fileno());"
|
||||
# this will cause the Kindle to disconnect.
|
||||
with open(fileobj.name + '.linux-sucks', 'wb') as f:
|
||||
f.write(b'I cannot believe I need to do this')
|
||||
os.remove(f.name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user