RTEMS | Draft: IMFS User allocator Plugin Code (!534)

Joel Sherrill (@joel) gitlab at rtems.org
Mon Aug 4 22:43:23 UTC 2025




Joel Sherrill started a new discussion on testsuites/psxtests/psximfs03/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/534#note_128189

 > +#include <unistd.h>
 > +#include <sys/types.h>
 > +#include <sys/stat.h>
 > +#include <sys/statvfs.h>
 > +#include <fcntl.h>
 > +#include <errno.h>
 > +#include <rtems/libcsupport.h>
 > +#include <rtems/imfs.h>
 > +
 > +const char rtems_test_name[] = "PSXIMFS 3";
 > +#define BLOCK_SIZE 16
 > +
 > +typedef struct block{
 > +  struct block * next;
 > +  char data[BLOCK_SIZE - sizeof(struct block*)];
 > +}block;

Space after }

This structure should be a total of 16 bytes. Since I am commenting anyway, you can add an _Assert() near the start of the test that this is true.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/534#note_128189
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/20250804/d4a10167/attachment-0001.htm>


More information about the bugs mailing list