]> git.neil.brown.name Git - history.git/commit
[PATCH] cramfs: small stat(2) fix
authorAndrew Morton <akpm@osdl.org>
Sat, 12 Mar 2005 13:35:18 +0000 (05:35 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 12 Mar 2005 13:35:18 +0000 (05:35 -0800)
commit26556a1162f82e214fe6fc7b832f72e367c46920
treeba5a9c7ad07d9ed5e397d07c1d6e7a13e32868e2
parentafa1175df28c9f416b099ed3a682d3f993dd5dbb
[PATCH] cramfs: small stat(2) fix

From: Eric Lammerts <eric@lammerts.org>

When I stat(2) a device node on a cramfs, the st_blocks field is bogus
(it's derived from the size field which in this case holds the major/minor
numbers).  This makes du(1) output completely wrong.

Signed-off-by: Eric Lammerts <eric@lammerts.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cramfs/inode.c