On Thu, May 17, 2018, 9:51 AM Matthew J Fletcher <ami...@gmail.com> wrote:
> Hi, > > I've not been able to find a clear guide on how to setup/use an IMFS > filesystem. I wish to mount this to use a separate volatile memory area, > not as a root filesystem. > > > There is some incomplete documentation here, https://docs.rtems.org/ > branches/master/filesystem/in-memory.html and the imfs.h header has some > helpful comments. > > I guess its some combination of. > > IMFS_initialize > IMFS_mount > > but i have also seen code that does,.. > > mount_and_make_target_path(NULL, mnt, RTEMS_FILESYSTEM_TYPE_IMFS, > RTEMS_FILESYSTEM_READ_WRITE, &mount_data); > > Is there a clear example anywhere ? > The IMFS uses malloc for disk blocks so that might have to be addressed for your use cases. Look at testsuites/fstests/mimfs_support and the tests that use that. --joel > > -- > > regards > --- > Matthew J Fletcher > > _______________________________________________ > users mailing list > users@rtems.org > http://lists.rtems.org/mailman/listinfo/users
_______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users