IMFS usage

Matthew J Fletcher amimjf at gmail.com
Thu May 17 16:09:49 UTC 2018


Hi,

Thanks for that information.

> The IMFS uses malloc for disk blocks so that might have to be addressed
for your use cases.

Is there any way to pass in / override the block allocator ?



On Thu, 17 May 2018, 15:58 Joel Sherrill, <joel at rtems.org> wrote:

>
>
> On Thu, May 17, 2018, 9:51 AM Matthew J Fletcher <amimjf at 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 at rtems.org
>> http://lists.rtems.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20180517/eddbbfaf/attachment-0002.html>


More information about the users mailing list