mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
dm: fix thin-pool targer params order
Wrong thin-pool feature flag ordering in dm table: It will lead to unnecessary table reload. Fix it by placeing feature flags in order they are returned from the kernel so current 'table line diff' code will not see a difference.
This commit is contained in:
parent
e32e793c43
commit
f91622741f
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.116 -
|
Version 1.02.116 -
|
||||||
====================================
|
====================================
|
||||||
|
Fix thin-pool table parameter feature order to match kernel output.
|
||||||
|
|
||||||
Version 1.02.115 - 25th January 2016
|
Version 1.02.115 - 25th January 2016
|
||||||
====================================
|
====================================
|
||||||
|
@ -2477,11 +2477,11 @@ static int _thin_pool_emit_segment_line(struct dm_task *dmt,
|
|||||||
|
|
||||||
EMIT_PARAMS(pos, "%s %s %d %" PRIu64 " %d%s%s%s%s%s", metadata, pool,
|
EMIT_PARAMS(pos, "%s %s %d %" PRIu64 " %d%s%s%s%s%s", metadata, pool,
|
||||||
seg->data_block_size, seg->low_water_mark, features,
|
seg->data_block_size, seg->low_water_mark, features,
|
||||||
seg->error_if_no_space ? " error_if_no_space" : "",
|
|
||||||
seg->read_only ? " read_only" : "",
|
|
||||||
seg->skip_block_zeroing ? " skip_block_zeroing" : "",
|
seg->skip_block_zeroing ? " skip_block_zeroing" : "",
|
||||||
seg->ignore_discard ? " ignore_discard" : "",
|
seg->ignore_discard ? " ignore_discard" : "",
|
||||||
seg->no_discard_passdown ? " no_discard_passdown" : ""
|
seg->no_discard_passdown ? " no_discard_passdown" : "",
|
||||||
|
seg->error_if_no_space ? " error_if_no_space" : "",
|
||||||
|
seg->read_only ? " read_only" : ""
|
||||||
);
|
);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user