Commit 022f83ea authored by bescoto's avatar bescoto

--windows-mode no longer fsync's directories


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@312 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 6cf3f58d
...@@ -6,8 +6,8 @@ Kempe for report.) ...@@ -6,8 +6,8 @@ Kempe for report.)
Added --list-at-time option at request of Farkas Levente. Added --list-at-time option at request of Farkas Levente.
Don't change ownership if --windows-mode option is given. (Bug report Various fixes for backing up onto windows directories. Thanks to
by Keith Edmunds.) Keith Edmunds for bug reports and testing.
New in v0.11.4 (2003/03/15) New in v0.11.4 (2003/03/15)
......
...@@ -888,10 +888,11 @@ Files whose names are close to the maximum length (e.g. 235 chars if ...@@ -888,10 +888,11 @@ Files whose names are close to the maximum length (e.g. 235 chars if
the maximum is 255) may be skipped because the filenames of related the maximum is 255) may be skipped because the filenames of related
increment files would be too long. increment files would be too long.
.PP .PP
The gzip library in some versions of python have trouble producing The gzip library in versions 2.2 and earlier of python have trouble
files over 2GB in length. This bug will prevent rdiff-backup from producing files over 2GB in length. This bug will prevent
producing large compressed increments (snapshots or diffs). A rdiff-backup from producing large compressed increments (snapshots or
workaround is to disable compression for large uncompressable files. diffs). A workaround is to disable compression for large
uncompressable files.
.SH AUTHOR .SH AUTHOR
Ben Escoto <bescoto@stanford.edu> Ben Escoto <bescoto@stanford.edu>
......
...@@ -176,6 +176,10 @@ restrict_path = None ...@@ -176,6 +176,10 @@ restrict_path = None
# the man page under --no-compare-inode for more information. # the man page under --no-compare-inode for more information.
compare_inode = 1 compare_inode = 1
# If set, directories can be fsync'd just like normal files, to
# guarantee that any changes have been committed to disk.
fsync_directories = 1
def get(name): def get(name):
"""Return the value of something in this module""" """Return the value of something in this module"""
......
...@@ -149,6 +149,7 @@ def parse_cmdlineoptions(arglist): ...@@ -149,6 +149,7 @@ def parse_cmdlineoptions(arglist):
Globals.set('quoting_enabled', 1) Globals.set('quoting_enabled', 1)
Globals.set('preserve_hardlinks', 0) Globals.set('preserve_hardlinks', 0)
Globals.set('change_ownership', 0) Globals.set('change_ownership', 0)
Globals.set('fsync_directories', 0)
else: Log.FatalError("Unknown option %s" % opt) else: Log.FatalError("Unknown option %s" % opt)
def isincfilename(path): def isincfilename(path):
......
...@@ -908,7 +908,7 @@ class RPath(RORPath): ...@@ -908,7 +908,7 @@ class RPath(RORPath):
def fsync_with_dir(self, fp = None): def fsync_with_dir(self, fp = None):
"""fsync self and directory self is under""" """fsync self and directory self is under"""
self.fsync(fp) self.fsync(fp)
self.get_parent_rp().fsync() if Globals.fsync_directories: self.get_parent_rp().fsync()
def sync_delete(self): def sync_delete(self):
"""Delete self with sync to guarantee completion """Delete self with sync to guarantee completion
......
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