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

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Stephan Linke
Date:  
To: Yaffs List
Old-Topics: [Yaffs-archive] Re: remaining space on file system
Subject: [Yaffs] [Yaffs-archive] RE: remaining space on file system
Hi,

my problem with df or statfs() is that I am affraid it doesn't exactly show the remaining space because of the problem of partialy
used chunks.

Stephan

> -----Original Message-----
> From: Charles Manning [mailto:manningc2@actrix.gen.nz]
> Sent: Freitag, 25. Juli 2003 00:43
> To: Stephan Linke; Yaffs List
> Subject: 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.
>
>



---------------------------------------------------------------------------------------
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.