On Wed, Apr 27 2011 at 11:06am -0400, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote: > With targets like dm-thinp we might want to allow discard even if the > underlying devices don't support them natively. This patch is the > extreme variant of not restricting discard support at all, but maybe > there are other options. Or maybe we should keep the old > dm_table_supports_discards function as a helper for targets that > want simple discard passthrough? I think we could accomplish the same by adding a target override flag (e.g. ti->discards_supported) that enables dm_table_supports_discards() to short-circuit device_discard_capable's native discard checking. Mike -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel