[Yaffs-archive] RE: remaining space on file system
Stephan Linke
Stephan.Linke@epygi.de
Tue, 22 Jul 2003 09:59:49 +0200
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. :-(
Thanks, Stephan
> -----Original Message-----
> From: Charles Manning [mailto:manningc2@actrix.gen.nz]
> Sent: Dienstag, 22. Juli 2003 02:17
> To: Stephan Linke; Yaffs List
> Subject: Re: remaining space on file system
>
>
> On Monday 21 July 2003 20:57, Stephan Linke wrote:
> > Hi,
> >
> > I need something to figure out how many space is remaining on a yaffs
> > filesystem. df shows only the usage compaired to the over all size butI
> > have to take the overhead from partilay used pages etc. into account too.
> > Does anybody know how to make a good guess or is there any tool to do so?
> >
> > Thanx, Stephan
>
> YAFFS derives its free space by counting the number of free "chunks" (pages)
> and subtracting a reserved space for garbage collection etc. It does not
> include partially used pages in the free space calculation since the partial
> pages are allocated and are thus in use.
>
> Why woul you want to do that? THere is no guarantee that you can get the
> space in a partially used page since that page is allocated to a file.
>
> -- 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.