From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 28 Jan 2005 10:23:17 +0100 From: Jens Beyer Subject: Re: [linux-lvm] Data corruption on large, multi-device filesystem Message-ID: <20050128092317.GA22682@pcnocjb.dlan.cinetic.de> References: <20050118091059.GC27553@pcnocjb.dlan.cinetic.de> <1106172883.41eedbd386498@www.eiler.net> <41EFBAF4.5030403@svs.gsfc.nasa.gov> <20050120175900.GE14093@agk.surrey.redhat.com> <20050121150913.GA16975@pcnocjb.dlan.cinetic.de> <1106674648.41f683d80ea75@www.eiler.net> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <1106674648.41f683d80ea75@www.eiler.net> Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: joe@eiler.net Cc: dm-devel@redhat.com, LVM general discussion and development Hi, since the two patches (stripe_width and sector_t cast) didnt help, I started to put printk in the dm-stripe code. At a certain point stripe_map() starts to get called with zero data (eg bio->bi_sector = 0 or 2^32, 2^31 ). This lead me to put some debugging into dm.c especially into max_io_len() where an inline function dm_round_up() is used. Interpreting my printk's this funktion doesnt work well with offsets larger then 2^32. I did some (very) ugly hack to calculate the boundary in that case and it seems that the error is gone (though the full check takes a few days). Maybe someone with insight on what should happen in dm.c can have a look at max_io_len and the inlined function? Jens -- Nur tote Fische schwimmen mit dem Strom