Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261981AbVCARKp (ORCPT ); Tue, 1 Mar 2005 12:10:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261982AbVCARKp (ORCPT ); Tue, 1 Mar 2005 12:10:45 -0500 Received: from vivaldi.madbase.net ([81.173.6.10]:48335 "HELO vivaldi.madbase.net") by vger.kernel.org with SMTP id S261981AbVCARKl (ORCPT ); Tue, 1 Mar 2005 12:10:41 -0500 Date: Tue, 1 Mar 2005 12:10:39 -0500 (EST) From: Eric Lammerts X-X-Sender: eric@vivaldi.madbase.net To: linux-kernel@vger.kernel.org Subject: [PATCH] cramfs: small stat(2) fix Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 900 Lines: 27 Hi, 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. Please apply the patch below. Eric Signed-off-by: Eric Lammerts --- linux-2.6.11-rc5/fs/cramfs/inode.c.orig 2005-03-01 11:10:29.000000000 -0500 +++ linux-2.6.11-rc5/fs/cramfs/inode.c 2005-03-01 11:10:36.000000000 -0500 @@ -70,6 +70,7 @@ inode->i_data.a_ops = &cramfs_aops; } else { inode->i_size = 0; + inode->i_blocks = 0; init_special_inode(inode, inode->i_mode, old_decode_dev(cramfs_inode->size)); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/