]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] cramfs mounts provide corrupted content since 2.6.15
authorDave Johnson <djohnson@sw.starentnetworks.com>
Mon, 6 Mar 2006 23:42:36 +0000 (15:42 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 7 Mar 2006 02:40:43 +0000 (18:40 -0800)
commitae34b1ebb6017ce752a73842ca223ce21f08c9e0
tree6994ee69f5007218ce5b6cc1b14e372ebffc457f
parent209552da77c1c1e3d6e05a2619defe1814731082
[PATCH] cramfs mounts provide corrupted content since 2.6.15

Fix handling of cramfs images created by util-linux containing empty
regular files.  Images created by cramfstools 1.x were ok.

Fill out inode contents in cramfs_iget5_set() instead of get_cramfs_inode()
to prevent issues if cramfs_iget5_test() is called with I_LOCK|I_NEW still
set.

Signed-off-by: Dave Johnson <djohnson+linux-kernel@sw.starentnetworks.com>
Cc: Olaf Hering <olh@suse.de>
Cc: Chris Mason <mason@suse.com>
Cc: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/cramfs/inode.c