Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965002AbWLTLmB (ORCPT ); Wed, 20 Dec 2006 06:42:01 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965004AbWLTLmB (ORCPT ); Wed, 20 Dec 2006 06:42:01 -0500 Received: from nf-out-0910.google.com ([64.233.182.185]:46370 "EHLO nf-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965002AbWLTLmA (ORCPT ); Wed, 20 Dec 2006 06:42:00 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s7tPIlD41qu12F9uUWitDchA2waQD4uPS/RjVBAk9uUYat0N6Tkq6p0lDzpU5g6bqGOxiyenFfSxdknawzYMwzACQOQOLkxQvN9AaLKdzDUBMLIlkSK5qFC4Uc2Axn5sABU1z9WrK4j19Y+8EOe1B9jBI6u28AiKD6e3OWWDBr4= Message-ID: <5157576d0612200341r12358fcai17cd7315402a666b@mail.gmail.com> Date: Wed, 20 Dec 2006 14:41:58 +0300 From: "Tomasz Kvarsin" To: "Andrew Morton" Subject: Re: [BUG] garbage instead of zeroes in UFS Cc: "Alexander Viro" , linux-kernel@vger.kernel.org, "Evgeniy Dushistov" In-Reply-To: <20061220030955.bd3acdbc.akpm@osdl.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5157576d0612200302j556694bfsfdc6cb0c37b054c@mail.gmail.com> <5157576d0612200304n7123157vc47c3c7c1a645527@mail.gmail.com> <20061220030955.bd3acdbc.akpm@osdl.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1820 Lines: 50 On 12/20/06, Andrew Morton wrote: > On Wed, 20 Dec 2006 14:04:06 +0300 > "Tomasz Kvarsin" wrote: > > > Forgot to say I use linux-2.6.20-rc1-mm1 > > > > On 12/20/06, Tomasz Kvarsin wrote: > > > I have some problems with write support of UFS. > > > Here is script which demonstrate problem: > > > > > > #create image > > > mkdir /tmp/ufs-expirements && cd /tmp/ufs-expirements/ > > > for ((i=0; i<1024*1024*2; ++i)); do printf "z"; done > image > > > > > > #build ufs tools > > > wget 'http://heanet.dl.sourceforge.net/sourceforge/ufs-linux/ufs-tools-0.1.tar.bz2' > > > && tar xjf ufs-tools-0.1.tar.bz2 && cd ufs-tools-0.1 > > > wget http://lkml.org/lkml/diff/2006/5/20/48/1 -O build.patch > > > patch -p1 < build.patch && make > > > > > > #create UFS file system on image > > > ./mkufs -O 1 -b 16384 -f 2048 ../image > > > cd .. && mkdir root > > > mount -t ufs image root -o loop,ufstype=44bsd > > > cd root/ > > > touch a.txt > > > echo "END" > end.txt > > > dd if=./end.txt of=./a.txt bs=16384 seek=1 > > > > > > and at the end content of "a.txt" not only "END" and zeroes, > > > "a.txt" also contains "z". > > > > > > The real situation happened when I deleted big file, > > > and create new one with holes. This script just easy way to reproduce bug. > > > > > Does 2.6.20-rc1 have the same problem? > Yes. Actually, if it is important, I start my searching of stable UFS write support from 2.6.10 + RH patches. It just hang up time to time, I try 2.6.19, it is pretty stable, but has this bug, 2.6.20-rc1 has it. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/