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

Kinsey Moore (@opticron) gitlab at rtems.org
Fri Sep 19 23:28:33 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_132808

 >      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;
 > +  }

I'll update this to be a hard failure. I noticed some other issues with this function when I was updating it and will push with corrections once I've run it through tests.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/735#note_132808
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/20250919/2895690e/attachment-0001.htm>


More information about the bugs mailing list