From: Alasdair G Kergon Subject: Re: [PATCH] fix mirror device creation with lvcreate failed Date: Wed, 17 Sep 2014 00:35:29 +0100 Message-ID: <20140916233529.GD2407@agk-dp.fab.redhat.com> References: <1409127505-5246-1-git-send-email-lwang@suse.com> <20140916232104.GC2407@agk-dp.fab.redhat.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20140916232104.GC2407@agk-dp.fab.redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Liuhua Wang Cc: nfbrown@suse.com, dm-devel@redhat.com List-Id: dm-devel.ids On Wed, Sep 17, 2014 at 12:21:04AM +0100, Alasdair G Kergon wrote: > > rdev->sb_size = sizeof(*sb); > What should sb_size really be? > > - ret = read_disk_sb(rdev, rdev->sb_size); Or are the sizes in the existing code correct (the dm sb is always 512 bytes?), with the problem coming from something in sync_page_io()? (4k sector device? large page size? incorrectly uninitialised field?) Alasdair