This is the mail archive of the
mailing list for the eCos project.
Re: Receive available and used space from JFFS2
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Savin Zlobec <savin at elatec dot si>
- Cc: eibach at gdsys dot de, ecos-patches at sources dot redhat dot com
- Date: Mon, 21 Jun 2004 18:44:33 +0200
- Subject: Re: Receive available and used space from JFFS2
- References: <40D6F45F.email@example.com>
> I've noticed that you used a 32 bit value for returning fs space info,
> this may
> not be such an good idea - check an old discussion about this at
> http://ecos.sourceware.org/ml/ecos-devel/2003-07/msg00031.html .
> I think a better way would be to return a structure with free/used space
> in blocks + block size.
You are assuming a block based storage media. romfs does not have
blocks. Although jffs2 uses flash blocks, the files themselves are not
block based. Only ramfs and fat use blocks.
I think i might change the interface to pass a cyg_uint64 instead.
> It would also be nice to put the keys (+ common structures)
> in a separate file - like it is done with IO config_keys.h.
Humm. I think Nick put the origional 3 keys in fileio.h. He should
decide if they should be moved out to a seperate header file.