This is the mail archive of the
mailing list for the eCos project.
Re: Receive available and used space from JFFS2
- From: Savin Zlobec <savin at elatec dot si>
- To: andrew at lunn dot ch, eibach at gdsys dot de
- Cc: ecos-patches at sources dot redhat dot com
- Date: Mon, 21 Jun 2004 16:44:47 +0200
- Subject: Re: Receive available and used space from JFFS2
On Thu, Jun 17, 2004 at 10:07:15AM +0000, email@example.com wrote:
this adds support for information about used and available space in
JFFS2 (ecos). This information is received via cyg_fs_getinfo(). The
keys for cyg_fs_getinfo() are FS_INFO_FREESIZE and FS_INFO_USEDSIZE.
I've taken a look at the patch. Adding those macros to nodelist.h is
the wrong thing to do. They were replaced by variables last
October. I've modified your code to do what i think is the correct
thing. I also added code to the ROMFS to implement getting the the
used and free size of the filesystem.
Please could you test this patch before i commit it. It would also be
nice if you could add support to the RAM and FAT filesystem code.
I've noticed that you used a 32 bit value for returning fs space info,
not be such an good idea - check an old discussion about this at
I think a better way would be to return a structure with free/used space
in blocks + block size. It would also be nice to put the keys (+ common
in a separate file - like it is done with IO config_keys.h.