From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?GB2312?B?yfLP/rO/?= Subject: How to get the file system statistics information in kernel space? Date: Thu, 18 Jun 2009 19:03:04 +0800 Message-ID: <8aeefb100906180403t7e9100a5s82585e3863d14959@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: linux-fsdevel@vger.kernel.org Return-path: Received: from qw-out-2122.google.com ([74.125.92.27]:34957 "EHLO qw-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753063AbZFRLDC (ORCPT ); Thu, 18 Jun 2009 07:03:02 -0400 Received: by qw-out-2122.google.com with SMTP id 5so537739qwd.37 for ; Thu, 18 Jun 2009 04:03:04 -0700 (PDT) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hi, How to get the file system statistics information in kernel space device driver? Can I get the block size, total blocks, free blocks and etc. information in the filesystem just like user space function statfs() get? Thanks Xiaochen