[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070620125653.GG27218@duck.suse.cz>
Date: Wed, 20 Jun 2007 14:56:53 +0200
From: Jan Kara <jack@...e.cz>
To: linux-ext4@...r.kernel.org
Cc: tytso@....edu
Subject: ext2fs_block_iterate() on fast symlink
Hello,
when ext2fs_block_iterate() is called on a fast symlink (and I assume
device inodes would be no different), then random things happen - the
problem is ext2fs_block_iterate() just blindly takes portions of the inode
and treats them as block numbers. Now I agree that garbage went in (it
makes no sence to call this function on such inode) so garbage results but
maybe it would be nicer to handle it more gracefully. Attached patch should
do it.
Honza
--
Jan Kara <jack@...e.cz>
SuSE CR Labs
View attachment "e2fsprogs-block_iterate_fix.diff" of type "text/x-patch" (879 bytes)
Powered by blists - more mailing lists