public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] garbage instead of zeroes in UFS
@ 2006-12-20 11:02 Tomasz Kvarsin
  2006-12-20 11:04 ` Tomasz Kvarsin
  0 siblings, 1 reply; 8+ messages in thread
From: Tomasz Kvarsin @ 2006-12-20 11:02 UTC (permalink / raw)
  To: Andrew Morton, Alexander Viro, linux-kernel

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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-12-28 15:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-20 11:02 [BUG] garbage instead of zeroes in UFS Tomasz Kvarsin
2006-12-20 11:04 ` Tomasz Kvarsin
2006-12-20 11:09   ` Andrew Morton
2006-12-20 11:41     ` Tomasz Kvarsin
2006-12-20 14:54     ` [BUG] [PATCH] [RFC] " Evgeniy Dushistov
2006-12-20 16:52       ` Tomasz Kvarsin
2006-12-21  5:35       ` Andrew Morton
2006-12-28 16:04         ` Evgeniy Dushistov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox