summaryrefslogtreecommitdiff
path: root/tools/vm
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2012-05-19 00:01:01 (GMT)
committerAlasdair G Kergon <agk@redhat.com>2012-05-19 00:01:01 (GMT)
commitf402693d06f32e746c6153e459c5fb064fa02741 (patch)
treec4cfcf2702b3e5a1e94e3c3b923b52c413e4325a /tools/vm
parent36be50515fe2aef61533b516fa2576a2c7fe7664 (diff)
downloadlinux-fsl-qoriq-f402693d06f32e746c6153e459c5fb064fa02741.tar.xz
dm thin: fix table output when pool target disables discard passdown internally
When the thin pool target clears the discard_passdown parameter internally, it incorrectly changes the table line reported to userspace. This breaks dumb string comparisons on these table lines in generic userspace device-mapper library code and leads to tables being reloaded repeatedly when nothing is actually meant to be changing. This patch corrects this by no longer changing the table line when discard passdown was disabled. We can still tell when discard passdown is overridden by looking for the message "Discard unsupported by data device (sdX): Disabling discard passdown." This automatic detection is also moved from the 'load' to the 'resume' so that it is re-evaluated should the properties of underlying devices change. Signed-off-by: Mike Snitzer <snitzer@redhat.com> Acked-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'tools/vm')
0 files changed, 0 insertions, 0 deletions