RTEMS | bsps/shared/dev/flash: Enforce maximum JFFS2 filesystem size (!735)

Kinsey Moore (@opticron) gitlab at rtems.org
Sat Sep 20 21:14:10 UTC 2025




Kinsey Moore commented on a discussion on bsps/shared/dev/flash/jffs2_flashdev.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/735#note_132894

 >      return status;
 >    }
 >  
 > +  /* JFFS2 maximum FS size is one block less than 4GB */
 > +  max_jffs2_size -= instance->super.block_size;
 > +
 > +  /* Enforce maximum JFFS2 filesystem size */
 > +  if (instance->super.flash_size > max_jffs2_size) {
 > +    instance->super.flash_size = max_jffs2_size;
 > +  }

This has been addressed along with the memory leaks I noticed.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/735#note_132894
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250920/d60d21aa/attachment-0001.htm>


More information about the bugs mailing list