summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-11-24 18:57:58 +0000
committerLars Wirzenius <liw@liw.fi>2012-11-24 18:57:58 +0000
commitb6feca76369c48e78d64bc7e1660cc32d16c479f (patch)
treeccf08e10f2c9fd75ae287077e217b6fd0f88689a
parent9dc0c1d138e7a8c6c6ea0d9d7e663cef48795d14 (diff)
downloadobnam-b6feca76369c48e78d64bc7e1660cc32d16c479f.tar.gz
Backup files in inode number order
Patch by Christophe Vu-Brugier.
-rw-r--r--NEWS2
-rw-r--r--obnamlib/vfs_local.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 5d88d62a..5ee07324 100644
--- a/NEWS
+++ b/NEWS
@@ -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)