]> git.baikalelectronics.ru Git - kernel.git/commit
dm thin: emit ignore_discard in status when discards disabled
authorMike Snitzer <snitzer@redhat.com>
Fri, 21 Dec 2012 20:23:32 +0000 (20:23 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 21 Dec 2012 20:23:32 +0000 (20:23 +0000)
commitbc981532634a4eacb213bb46dffa714ab55fe1a2
tree80fa9a7e9b79e09e31081db699d1ad449cb7f46a
parent2961595a82a2f2b3eea916247e8c4bbf88ff27e1
dm thin: emit ignore_discard in status when discards disabled

If "ignore_discard" is specified when creating the thin pool device then
discard support is disabled for that device.  The pool device's status
should reflect this fact rather than stating "no_discard_passdown"
(which implies discards are enabled but passdown is disabled).

Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-thin.c