[dm-devel] [PATCH] fix mirror device creation with lvcreate failed

Alasdair G Kergon agk at redhat.com
Tue Sep 16 23:35:29 UTC 2014


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




More information about the dm-devel mailing list