[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [dm-devel] [PATCH] Check region size during dirty log creation
- From: Alasdair G Kergon <agk redhat com>
- To: heinzm redhat com
- Cc: device-mapper development <dm-devel redhat com>
- Subject: Re: [dm-devel] [PATCH] Check region size during dirty log creation
- Date: Wed, 29 Oct 2008 20:51:32 +0000
On Wed, Oct 29, 2008 at 04:53:42PM +0100, Heinz Mauelshagen wrote:
> I'm arguing, that the kernel should only restrict to prevent against
> programming errors.
Indeed - but I'm asking where the existing constraint is coming
from and if it is still/was ever correct?
Also, this patch duplicates existing checks in _check_region_size()
that should be removed if the validation moves.
static inline int _check_region_size(struct dm_target *ti, uint32_t size)
{
return !(size % (PAGE_SIZE >> 9) || !is_power_of_2(size) ||
size > ti->len);
}
Alasdair
--
agk redhat com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]