Re: Irritating ext2fs corruption [solved]

Jakob Borg (jb@k2.lund.se)
Wed, 5 Aug 1998 16:24:29 +0200


On Tue, Aug 04, 1998 at 04:21:07PM -0400, Theodore Y. Ts'o wrote:

> Is this something you can reliably reproduce on your machine? If so,
> can you try simply creating the image file using mkisofs, then
> immediately deleting it, and see if you can reproduce the problem that
> way.

> P.S. In my mind at least, we haven't ruled out some kind of wierd
> hardware problem yet....

Well it seems it is a wetware problem: my brain.

I did a few more tests and realized that I had assumed the loop device
was unregistered when the (loop-mounted) filesystem was unounted
(shouldn't it perhaps be? obviously not). When unregistered, the file
dissapears nicely.

Sorry to cause such a stir for nothing ;(

Script started on Wed Aug 5 16:01:58 1998
jb@narayan:~# df
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/root 5408794 3741601 1667193 69% /
/dev/hda2 784872 534758 250114 68% /home/jb
/dev/scd0 643322 643322 0 100% /cd0
jb@narayan:~# mkhybrid -J -r -o stuff.iso /usr/local/data/audio/mp3/songs\ by\ g roup/{[a-e]}*

[snip status messages]

jb@narayan:~# df
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/root 5408794 4280767 1128027 79% /
/dev/hda2 784872 534758 250114 68% /home/jb
/dev/scd0 643322 643322 0 100% /cd0
jb@narayan:~# rm stuff.iso
jb@narayan:~# df
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/root 5408794 3741617 1667177 69% /
/dev/hda2 784872 534758 250114 68% /home/jb
/dev/scd0 643322 643322 0 100% /cd0
jb@narayan:~# mkhybrid -J -r -o stuff.iso /usr/local/data/audio/mp3/songs\ by\ g roup/{[a-e]}*

[snip status messages]

jb@narayan:~# df
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/root 5408794 4280774 1128020 79% /
/dev/hda2 784872 534758 250114 68% /home/jb
/dev/scd0 643322 643322 0 100% /cd0
jb@narayan:~# mount stuff.iso /mnt -o loop
jb@narayan:~# umount /mnt
jb@narayan:~# mount
/dev/root on / type ext2 (rw)
/proc on /proc type proc (rw)
/dev/hda2 on /home/jb type ext2 (rw,mand,noatime)
/dev/scd0 on /cd0 type iso9660 (ro,noexec,nosuid,nodev)
jb@narayan:~# rm stuff.iso
jb@narayan:~# df
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/root 5408794 4280786 1128008 79% /
/dev/hda2 784872 534758 250114 68% /home/jb
/dev/scd0 643322 643322 0 100% /cd0
jb@narayan:~# losetup -d /dev/loop0
jb@narayan:~# df
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/root 5408794 3741636 1667158 69% /
/dev/hda2 784872 534758 250114 68% /home/jb
/dev/scd0 643322 643322 0 100% /cd0
jb@narayan:~# ^Dexit

Script done on Wed Aug 5 16:12:20 1998

-- 
Jakob Borg <jb@k2.lund.se>
[Debian GNU/Linux 2.0 narayan 2.1.112 i586]

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html