summaryrefslogtreecommitdiff
path: root/seivot
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-12-18 12:17:28 +0000
committerLars Wirzenius <liw@liw.fi>2011-12-18 12:17:28 +0000
commit9af37fbe73226ffa1917c4a24d2ad50b1db52c34 (patch)
tree1dc3ac6ce80ef9c64220c4773ed7e963b66ad964 /seivot
parent246d0247c2a37422600c739661ef82ce9efe5961 (diff)
downloadseivot-9af37fbe73226ffa1917c4a24d2ad50b1db52c34.tar.gz
benchmark fsck
Diffstat (limited to 'seivot')
-rwxr-xr-xseivot8
1 files changed, 8 insertions, 0 deletions
diff --git a/seivot b/seivot
index a395597..6f53a9b 100755
--- a/seivot
+++ b/seivot
@@ -103,6 +103,9 @@ class BackupProgram(object):
most appropriate for the backup program.
'''
+
+ def fsck(self, nth_gen):
+ '''Run fsck on the repository, after the nth backup generation.'''
def list_files(self, nth_gen):
'''This should retrieve a list of all files in a generation.
@@ -208,6 +211,9 @@ class Obnam(BackupProgram):
def backup(self, nth_gen):
return self._run(['backup', self.live_data], nth_gen)[0]
+
+ def fsck(self, nth_gen):
+ return self._run(['fsck'], nth_gen)[0]
def _genid(self, nth_gen):
timings, out = self._run(['genids'], nth_gen, stdout=subprocess.PIPE)
@@ -423,6 +429,7 @@ class Seivot(cliapp.Application):
if self.settings['verify']:
self.summain(self.live_data, 'backup-0.summain')
self.measure(prog.backup, 0, amount)
+ self.measure(prog.fsck, 0, amount)
for i in range(1, generations):
self.generate_live_data(self.live_data,
@@ -430,6 +437,7 @@ class Seivot(cliapp.Application):
if self.settings['verify']:
self.summain(self.live_data, 'backup-%d.summain' % i)
self.measure(prog.backup, i, self.settings['incremental-data'])
+ self.measure(prog.fsck, i, self.settings['incremental-data'])
for i in range(generations):
self.measure(prog.list_files, i, 0)