Commit 5536e7bf authored by bescoto's avatar bescoto

fsync_delete now follows global fsync setting


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@315 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent d8bddb3f
......@@ -145,7 +145,7 @@ def parse_cmdlineoptions(arglist):
sys.exit(0)
elif opt == "-v" or opt == "--verbosity": Log.setverbosity(arg)
elif opt == "--windows-mode":
Globals.set('chars_to_quote', "A-Z:")
Globals.set('chars_to_quote', "A-Z:\\/*?\"<>|")
Globals.set('quoting_enabled', 1)
Globals.set('preserve_hardlinks', 0)
Globals.set('change_ownership', 0)
......
......@@ -926,7 +926,7 @@ class RPath(RORPath):
self.delete()
os.fsync(fp.fileno())
assert not fp.close()
self.get_parent_rp().fsync()
if Globals.fsync_directories: self.get_parent_rp().fsync()
def get_data(self):
"""Open file as a regular file, read data, close, return data"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment