Lines Matching +full:max +full:- +full:len

3 # Bench backup block-job
31 cmd_options = env['cmd-options'] if 'cmd-options' in env else {}
32 return bench_block_copy(env['qemu-binary'], env['cmd'],
47 port = '10809' if len(nbd) == 1 else nbd[1]
57 raise ValueError("'nbd' label used but --nbd is not given")
62 source = drv_qcow2(drv_file(dirs[src] + '/test-source.qcow2'))
64 source = drv_file(dirs[src] + '/test-source')
77 fname = dirs[dst] + '/test-target'
94 if len(name_path) == 1:
98 assert len(name_path) == 2 # paths with colon not supported
129 elif opt == 'copy-range=on':
130 x_perf['use-copy-range'] = True
131 elif opt == 'copy-range=off':
132 x_perf['use-copy-range'] = False
133 elif opt.startswith('max-workers='):
134 x_perf['max-workers'] = int(opt.split('=')[1])
138 backup_options['x-perf'] = x_perf
147 'cmd': 'blockdev-mirror',
148 'qemu-binary': path
153 'cmd': 'blockdev-backup',
154 'cmd-options': backup_options,
155 'qemu-binary': path
177 (LABEL:PATH|LABEL|PATH)[,max-workers=N][,use-copy-range=(on|off)][,mirror]
181 max-workers set x-perf.max-workers of backup job
182 use-copy-range set x-perf.use-copy-range of backup job
185 p.add_argument('--env', nargs='+', help='''\
189 p.add_argument('--dir', nargs='+', help='''\
190 Directories, each containing "test-source" and/or
191 "test-target" files, raw images to used in
195 p.add_argument('--nbd', help='''\
199 p.add_argument('--test', nargs='+', help='''\
200 Tests, in form source-dir-label:target-dir-label''',
202 p.add_argument('--compressed', help='''\
206 p.add_argument('--qcow2-sources', help='''\
207 Use test-source.qcow2 images as sources instead of
208 test-source raw images''', action='store_true')
209 p.add_argument('--target-cache', help='''\
216 p.add_argument('--count', type=int, default=3, help='''\
219 # BooleanOptionalAction helps to support --no-initial-run option
220 p.add_argument('--initial-run', action=argparse.BooleanOptionalAction,
225 p.add_argument('--drop-caches', action='store_true', help='''\