SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
cygwin fsyncing again
Author Message
Post cygwin fsyncing again 
[apols for breaking thread - only just subscribed]

Hi -

I've been trying to get rdiff-backup working under cygwin as well. I get
the same problems as you see. From what I can see fsync works under
windows/cygwin but doesnt work when the file is open read only:

So this doesnt work:

echo testing > fsync-testfile
python -c 'import os; os.fsync(os.open("fsync-testfile", os.O_RDONLY))'
rm fsync-testfile

but this does:

echo testing > fsync-testfile
python -c 'import os; os.fsync(os.open("fsync-testfile", os.O_RDWR))'
rm fsync-testfile


HTH

Marcus

--
Marcus Williams -- http://www.cad-schroer.co.uk
CAD Schroer UK, 39 Newnham Road, Cambridge, UK

Post cygwin fsyncing again 
Marcus Williams <marcus < at > quintic.co.uk>
wrote the following on Wed, 23 Nov 2005 12:28:35 +0000

I've been trying to get rdiff-backup working under cygwin as well. I get
the same problems as you see. From what I can see fsync works under
windows/cygwin but doesnt work when the file is open read only:

So this doesnt work:

echo testing > fsync-testfile
python -c 'import os; os.fsync(os.open("fsync-testfile", os.O_RDONLY))'
rm fsync-testfile

but this does:

echo testing > fsync-testfile
python -c 'import os; os.fsync(os.open("fsync-testfile", os.O_RDWR))'
rm fsync-testfile

The devel version tries to fsync RDWR if RDONLY fails, you may want to
test with that.


--
Ben Escoto

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB