Filesystem mounting/layout

Matthew J Fletcher amimjf at gmail.com
Mon Mar 11 10:48:48 UTC 2013


Hi,

Looking in the fileio sample it looks pretty simple to register a IMFS
device, but could i have some guidance on how best to setup an IMFS root,
IMFS store on SRAM and a RFS store on NOR Flash.

Is it possible/sensible to use an IMFS filesystem as both a root filesystem
and also as storage filesystem as you would on linux ?

e.g IMFS would provide

/etc
/sram <- which is a 256k block
/flash <- which is a mounted RFS 4M block of NOR

Registering the IMFS device driver looks simple enough, but when it comes
to mounting and formating both IMFS and RFS i am slightly confused.

The RFS wiki entry shows using rtems_rtfs_format() and the standard mount()
call with a rtems_filesystem_mount_table_entry structure. But the fileio
sample shows using rtems_fsmount() passing in an fstab_t structure.

Also is RFS support a configure time option that i need to have enable
previously ?


regards
---
Matthew J Fletcher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20130311/2c1554be/attachment.html>


More information about the users mailing list