diff options
author | Mikulas Patocka <[email protected]> | 2014-07-28 18:11:25 -0400 |
---|---|---|
committer | Mike Snitzer <[email protected]> | 2014-08-01 12:30:37 -0400 |
commit | 56b1ebf2d9798257c5932c8a0dd9da16796dbf36 (patch) | |
tree | 79baf7a2894d3390e3c59c164382a481984a2a0c /net/lapb/lapb_subr.c | |
parent | 99eb1908e643609e83454c6fbcbb59f9055abf09 (diff) |
dm switch: efficiently support repetitive patterns
Add support for quickly loading a repetitive pattern into the
dm-switch target.
In the "set_regions_mappings" message, the user may now use "Rn,m" as
one of the arguments. "n" and "m" are hexadecimal numbers. The "Rn,m"
argument repeats the last "n" arguments in the following "m" slots.
For example:
dmsetup message switch 0 set_region_mappings 1000:1 :2 R2,10
is equivalent to
dmsetup message switch 0 set_region_mappings 1000:1 :2 :1 :2 :1 :2 :1 :2 \
:1 :2 :1 :2 :1 :2 :1 :2 :1 :2
Requested-by: Jay Wang <[email protected]>
Tested-by: Jay Wang <[email protected]>
Signed-off-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions