summaryrefslogtreecommitdiff
path: root/seivot
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-12-20 12:13:26 +0000
committerLars Wirzenius <liw@liw.fi>2011-12-20 12:13:26 +0000
commitfc8cddfcc4ac0dd6ad41a66a2834beb6fb1bb742 (patch)
tree0d8d8976553f9327d476923fdbd2855f85f58fc2 /seivot
parent27761dab75de90158b5eedc7b01207a61a3c31f6 (diff)
downloadseivot-fc8cddfcc4ac0dd6ad41a66a2834beb6fb1bb742.tar.gz
make fsck benchmarking be optional
Diffstat (limited to 'seivot')
-rwxr-xr-xseivot8
1 files changed, 6 insertions, 2 deletions
diff --git a/seivot b/seivot
index f2097f5..ebcaa2d 100755
--- a/seivot
+++ b/seivot
@@ -391,6 +391,8 @@ class Seivot(cliapp.Application):
'all SFTP transfers')
self.settings.boolean(['verify'], 'verify restored data')
+
+ self.settings.boolean(['benchmark-fsck'], 'benchmark fsck?')
self.settings.string(['obnam-config'],
'use FILE as an Obnam configuration file',
@@ -435,7 +437,8 @@ 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)
+ if self.settings['benchmark-fsck']:
+ self.measure(prog.fsck, 0, amount)
self.measure(prog.verify, 0, amount)
for i in range(1, generations):
@@ -444,7 +447,8 @@ 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'])
+ if self.settings['benchmark-fsck']:
+ self.measure(prog.fsck, i, self.settings['incremental-data'])
self.measure(prog.verify, i, self.settings['incremental-data'])
for i in range(generations):