Pavel Sanda wrote: > Ben Goodrich wrote: > > Pavel Sanda <sanda <at> lyx.org> writes: > > > most trivial patch would be something like > > > #ifdef linux > > > void fixdamnedext4(){fopen(f);fsync(f);fclose(f);} > > > #endif > > > and call it somewhere after saving file. > > > it would need some brave ext4 soul to test that this actually works. > > > > I have ext4 and a 2.6.37 kernel > > looks good. first of all, can you please try to build lyx 1.6.4 on your box > and reproduce the original bug? maybe kernel has moved from that time.
any attempt for this? p > > the recipy should be something like: > 0. all work must be done on some temp files. do not experiment on your real > files, otherwise you may see them last time :) > 1. open existing file (on which you havent worked in last few minutes - we > need no write cache around involved). > 2. write some text > 3. save file > 4. wait x seconds, where x is magical constant between 1s to 1 min. > try 2s in the beginning, but the problem maybe reproducible only > around certain value. > 5. switch off the computer by plugging out the power supply > 6. turn on and report what remained. > the original file? the full size or zero size? with changes? > the backup? the full size or zero size? > autosave? > > > to have bravery? > > many restart iterations maybe needed... > > pavel