<div dir="ltr"><div>Hi,</div><div><br></div><div>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Thanks for that information.</span>
<br></div><div><br></div><div>>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">The IMFS uses malloc for disk blocks so that might have to be addressed for your use cases.</span>
</div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div>Is there any way to pass in / override the block allocator ?</div><div><br></div><div dir="auto"></div><div><br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 17 May 2018, 15:58 Joel Sherrill, <<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Thu, May 17, 2018, 9:51 AM Matthew J Fletcher <<a href="mailto:amimjf@gmail.com" rel="noreferrer" target="_blank">amimjf@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>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.</div><div><br></div><div><br></div><div>There is some incomplete documentation here, <a href="https://docs.rtems.org/branches/master/filesystem/in-memory.html" rel="noreferrer noreferrer" target="_blank">https://docs.rtems.org/<wbr>branches/master/filesystem/in-<wbr>memory.html</a> and the imfs.h header has some helpful comments.</div><div><br></div><div>I guess its some combination of.<br></div><div><br></div><div>IMFS_initialize<br></div><div>IMFS_mount<br></div><div><br></div><div>but i have also seen code that does,..</div><div><div><br></div><div>mount_and_make_target_path(<wbr>NULL, mnt, RTEMS_FILESYSTEM_TYPE_<wbr>IMFS, RTEMS_FILESYSTEM_READ_WRITE, &<wbr>mount_data);</div></div><div><br></div><div>Is there a clear example anywhere ?</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The IMFS uses malloc for disk blocks so that might have to be addressed for your use cases.</div><div dir="auto"><br></div><div>Look at testsuites/fstests/mimfs_<wbr>support and the tests that use that.</div><div><br></div><div>--joel</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><br></div>-- <br><div class="m_-8681366168466872834m_5260600810507483943gmail-m_-3633819536652840286m_5348042512036821160gmail_signature"><div><br>regards</div><div>---</div><div>Matthew J Fletcher</div><br></div>
</div></div>
______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" rel="noreferrer noreferrer" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/users</a></blockquote></div></div></div></div>
</blockquote></div></div>