@fab.parallel
def set_device_read_ahead(read_ahead, devices):
    with fab.settings(user='root'):
        for device in devices:
            if 'docker' in device:
                continue # Docker has no device handle, so we can't set any parameters on it
            fab.run('blockdev --setra {read_ahead} {device}'.format(read_ahead=read_ahead,device=device))
dataset/ETHPy150Open datastax/cstar_perf/tool/cstar_perf/tool/fab_common.py/set_device_read_ahead/original