* interesting way to break ext3 using loop devices
@ 2006-11-15 14:36 Andi Kleen
2006-11-15 15:40 ` Theodore Tso
2006-11-15 16:22 ` Bill Rugolsky Jr.
0 siblings, 2 replies; 3+ messages in thread
From: Andi Kleen @ 2006-11-15 14:36 UTC (permalink / raw)
To: ext2-devel; +Cc: linux-fsdevel
By mistake i found a sick way to break ext3:
Create a sparse (only consisting of a large hole) loop file on a ext3 file system.
losetup a loop device over it
Create a ext3 file system in the loop device
Mount it.
Copy the "parent" file system into the mounted loop fs with cp -rv
Eventually it will work on the copy of the loop file.
When you Ctrl-C it the system becomes quite confused:
- Syslog is flooded with IO errors
- The loop fs cannot be unmounted anymore
- sync gets stuck
Of course this was clearly an operator error and
copying a file system into itself is clearly a sick thing
to do, but still it shouldn't cause symptoms like this. Perhaps
it points to a deeper issue.
-Andi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: interesting way to break ext3 using loop devices
2006-11-15 14:36 interesting way to break ext3 using loop devices Andi Kleen
@ 2006-11-15 15:40 ` Theodore Tso
2006-11-15 16:22 ` Bill Rugolsky Jr.
1 sibling, 0 replies; 3+ messages in thread
From: Theodore Tso @ 2006-11-15 15:40 UTC (permalink / raw)
To: Andi Kleen; +Cc: ext2-devel, linux-fsdevel
On Wed, Nov 15, 2006 at 03:36:20PM +0100, Andi Kleen wrote:
> Of course this was clearly an operator error and
> copying a file system into itself is clearly a sick thing
> to do, but still it shouldn't cause symptoms like this. Perhaps
> it points to a deeper issue.
Agreed; I'm guessing it's a bug in the loop device at first glance.
- Ted
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: interesting way to break ext3 using loop devices
2006-11-15 14:36 interesting way to break ext3 using loop devices Andi Kleen
2006-11-15 15:40 ` Theodore Tso
@ 2006-11-15 16:22 ` Bill Rugolsky Jr.
1 sibling, 0 replies; 3+ messages in thread
From: Bill Rugolsky Jr. @ 2006-11-15 16:22 UTC (permalink / raw)
To: Andi Kleen; +Cc: ext2-devel, linux-fsdevel
On Wed, Nov 15, 2006 at 03:36:20PM +0100, Andi Kleen wrote:
> Of course this was clearly an operator error and
> copying a file system into itself is clearly a sick thing
> to do, but still it shouldn't cause symptoms like this. Perhaps
> it points to a deeper issue.
Copying is silly, moving is perhaps not.
That is in fact how the in-place file system conversion tools
Convertfs - http://directory.fsf.org/sysadmin/misc/ConvertFS.html
and
anyfs-tools - http://anyfs-tools.sourceforge.net/
work: they move files into a loop mounted filesystem, use FIBMAP to
find out the logical<->physical block map, then umount the lot and move the
blocks of the loop file system to their final physical destination.
The assumption, of course, is that there is enough slack free space to
accommodate the extra meta-data.
Regards,
Bill Rugolsky
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-11-15 16:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-15 14:36 interesting way to break ext3 using loop devices Andi Kleen
2006-11-15 15:40 ` Theodore Tso
2006-11-15 16:22 ` Bill Rugolsky Jr.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.