Thanks for all the tips and pointers, much appreciated. I have a lot to learn, but I will try the fsync approach in the meantime.

Regards
Mikael