diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-11-24 18:57:58 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-11-24 18:57:58 +0000 |
commit | b6feca76369c48e78d64bc7e1660cc32d16c479f (patch) | |
tree | ccf08e10f2c9fd75ae287077e217b6fd0f88689a | |
parent | 9dc0c1d138e7a8c6c6ea0d9d7e663cef48795d14 (diff) | |
download | obnam-b6feca76369c48e78d64bc7e1660cc32d16c479f.tar.gz |
Backup files in inode number order
Patch by Christophe Vu-Brugier.
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | obnamlib/vfs_local.py | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -16,6 +16,8 @@ Version X.Y, released UNRELEASED to work with both NFS and VFAT. * More detailed progress reporting during the backup setup phase. * Manual page now covers the diff subcommand. Patch by Peter Valdemar Mørch. +* Speed optimisation patch for backing up files in inode numbering order, + from Christophe Vu-Brugier. Bug fixes: diff --git a/obnamlib/vfs_local.py b/obnamlib/vfs_local.py index 5a8df3bc..bf736ce6 100644 --- a/obnamlib/vfs_local.py +++ b/obnamlib/vfs_local.py @@ -356,5 +356,5 @@ class LocalFS(obnamlib.VirtualFileSystem): except OSError, e: # pragma: no cover st = e result.append((name, st)) - return result + return sorted(result, key=lambda st: st[1].st_ino) |