IMFS on ram-disk

Udit agarwal dev.madaari at
Tue Jul 24 14:24:40 UTC 2018

On Jul 24, 2018 7:45 PM, "Gedare Bloom" <gedare at> wrote:

On Tue, Jul 24, 2018 at 10:12 AM, Gedare Bloom <gedare at> wrote:
> On Tue, Jul 24, 2018 at 4:48 AM, Udit agarwal <dev.madaari at>
>> Hi all,
>> I've been trying to use IMFS with a ramdisk on BBB. Here's what i did:
>> After creating a ram disk (block size:512, block count:262144), i used
>> mount_and_make_target_path("/dev/rda","/mnt",RTEMS_
>> There is no error during bootup, but when allocating a file(in the /mnt
>> directory) of size 10MB(or even of 1MB) it gives a file too large error.
>> I've used similar config for RFS too and that did worked, so probably
>> there's no issue while setting up the RAM disk.
>> I've also tried testsuite/fstests/imfs_support setup, but looks like
>> method doesn't work with ram-disks
> What did you get back from mount_and_make_target_path()? Did it
> succeed? I'm pretty sure this method should not be used for imfs, see
> fstests/imfs_support/fs_support.c

Oh, I take that back. Sebastian's comment is accurate. You can
probably make your approach work by replacing "/dev/rda" with NULL I
would guess. The IMFS doesn't need a source, since it is backed by the

Yes, Sebastian's approach worked. I'm able to generate some benchmarking
stats on IMFS too.

>> --
>> Regards,
>> Udit kumar agarwal
>> _______________________________________________
>> users mailing list
>> users at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list