Mike Snitzer de7180ff90 dm cache: add support for discard passdown to the origin device
DM cache now defaults to passing discards down to the origin device.
User may disable this using the "no_discard_passdown" feature when
creating the cache device.

If the cache's underlying origin device doesn't support discards then
passdown is disabled (with warning).  Similarly, if the underlying
origin device's max_discard_sectors is less than a cache block discard
passdown will be disabled (this is required because sizing of the cache
internal discard bitset depends on it).

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2019-03-05 14:53:52 -05:00
..
2005-04-16 15:20:36 -07:00
2011-03-31 11:26:23 -03:00
2007-10-20 02:01:26 +01:00
2014-03-27 16:56:23 -04:00
2005-04-16 15:20:36 -07:00
2018-01-17 09:16:00 -05:00
2005-04-16 15:20:36 -07:00