]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commitff3aea0e68bfd46120ce2d08bc1f8240fa2bd36a
tree6994ee69f5007218ce5b6cc1b14e372ebffc457f
parent9888e6fa7b68d9c8cc2c162a90979825ab45150a
[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