summaryrefslogtreecommitdiff
path: root/seivot
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-06-25 14:43:49 +0100
committerLars Wirzenius <liw@liw.fi>2011-06-25 14:43:49 +0100
commite58f82ed1b2d2781c8b764c037994981ae833c76 (patch)
tree2309937181be0086b330a55247b3bf55d53705f4 /seivot
parent07da08f0eefd7ccb5d9289abce9d511f6593b20a (diff)
downloadseivot-e58f82ed1b2d2781c8b764c037994981ae833c76.tar.gz
Add --file-size option.
Diffstat (limited to 'seivot')
-rwxr-xr-xseivot5
1 files changed, 4 insertions, 1 deletions
diff --git a/seivot b/seivot
index f44e94e..cc59e90 100755
--- a/seivot
+++ b/seivot
@@ -316,6 +316,8 @@ class Seivot(cliapp.Application):
'(%default)',
metavar='SIZE',
default=1024)
+ self.settings.bytesize(['file-size'], 'size of files to create',
+ default=16*1024)
self.settings.string(['obnam-branch'],
'bzr branch from which to run obnam '
'(default is installed obnam)')
@@ -395,7 +397,8 @@ class Seivot(cliapp.Application):
def generate_live_data(self, where, size):
logging.info('Generating %d bytes live data' % size)
- runcmd(['genbackupdata', where, '--create', str(size)])
+ runcmd(['genbackupdata', where, '--create', str(size),
+ '--file-size', str(self.settings['file-size'])])
def measure(self, func, nth_gen, new_data, **kwargs):
logging.info('Measuring %s gen %d' % (func.__name__, nth_gen))