Another research:
1) fsync + utime = FAILED, DISCONNECTED
sync /mnt/sdb1
touch /mnt/sdb1/driveinfo.calibre
# FAILED
2) fsync + utime + sync = OK
sync /mnt/sdb1
touch /mnt/sdb1/driveinfo.calibre
sync
# OK
Kindle disconnects in ~2 seconds after fsync. Calling touch (like utime) making FS change but OS cache not write it in 2 seconds. If utime() is synced immediately (by Linux "sync" command), everthing is OK.
|