From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alasdair G Kergon Subject: Re: [PATCH] dm-crypt: Reject sector_size feature if device length is not aligned to it Date: Tue, 3 Oct 2017 13:05:08 +0100 Message-ID: <20171003120508.GA9979@agk-dp.fab.redhat.com> References: <20170913134556.23145-1-gmazyland@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Mikulas Patocka Cc: dm-devel@redhat.com, Mike Snitzer , Milan Broz List-Id: dm-devel.ids On Mon, Oct 02, 2017 at 10:43:56AM -0400, Mikulas Patocka wrote: > Here I send a patch that checks invalid limits when the table is loaded > and aborts the table load ioctl with an error. The code does not already do this because it needs to avoid unnecessary failures if any characteristics of the devices underneath change after the 'load' but before the 'resume' (as can happen, for example, when a tree of devices gets updated by performing all the loads before all the resumes). Alasdair