diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-06-25 14:43:49 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-06-25 14:43:49 +0100 |
commit | e58f82ed1b2d2781c8b764c037994981ae833c76 (patch) | |
tree | 2309937181be0086b330a55247b3bf55d53705f4 /seivot | |
parent | 07da08f0eefd7ccb5d9289abce9d511f6593b20a (diff) | |
download | seivot-e58f82ed1b2d2781c8b764c037994981ae833c76.tar.gz |
Add --file-size option.
Diffstat (limited to 'seivot')
-rwxr-xr-x | seivot | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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)) |