[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [dm-devel] [PATCH] dm: allow a target to relax discard restrictions
- From: Christoph Hellwig <hch infradead org>
- To: device-mapper development <dm-devel redhat com>
- Cc: Christoph Hellwig <hch infradead org>
- Subject: Re: [dm-devel] [PATCH] dm: allow a target to relax discard restrictions
- Date: Thu, 28 Apr 2011 04:41:17 -0400
On Wed, Apr 27, 2011 at 05:55:38PM -0400, Mike Snitzer wrote:
> A target, like the upcoming thin provisioning target, may want to allow
> discards even if the underlying devices do not support them natively.
>
> Signed-off-by: Mike Snitzer <snitzer redhat com>
This would work, but I thing it's really confusing to have your
new discards_supported flag in the dm_target structure in addition
to the existing discards_supported in the dm_table and the
num_discard_requests field there.
May we should allow the target to set a tristate
enum discard_enabled {
NEVER,
ALWAYS,
PASSTHROUGH
}
to indicate it's discard support?
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]