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
yaffs-request@toby-churchill.org with the text "unsubscribe"
(without the quotes) as the subject.