[Yaffs-archive] Re: remaining space on file system

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: Stephan Linke, Yaffs List
Subject: [Yaffs-archive] Re: remaining space on file system
On Tuesday 22 July 2003 19:59, Stephan Linke wrote:
> Hi Charles,
>
> indeed I am only interrested in the number of free chunks for a specific
> file system. (Maybe I was mistakable.) But the only available information
> comes from "df" command or from /proc/yaffs. Unfortunately we have 3 yaffs
> filesystems and I need the free chunks count from each single on, but
> /proc/yaffs has only one number for me. :-(
>


There is no magic in df it is just a program that makes system calls. You
just need to used the same system calls. The call to make is statfs().. This
ends up calling yaffs_statfs which gets you enough info.

For fun you might like to use strace to see what df is doing.

-- CHarles


---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by
sending an email to with the text "unsubscribe"
(without the quotes) as the subject.