Pavel Sanda wrote:
> in principle i'm all for it. i would just rename the method to 
> isOnTheDamnedExt4().

actually if we are going to code something specific for ext4 we could try
straight forward solution - really use fsync.

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.

not so straightforward would be using gcc extension for mixing
FILE* with streams to obtain file description to fsync but the code
would be horrible.

for the whole time i tried to avoid coding something like this, but given the 
symlink
trouble i'm out of clue for another workaround.
pavel

Reply via email to