[RTEMS Project] #2353: Error in imfs memfile when device is full

RTEMS trac trac at rtems.org
Wed May 27 18:59:39 UTC 2015

#2353: Error in imfs memfile when device is full
 Reporter:  joel.sherrill  |      Owner:
     Type:  defect         |     Status:  new
 Priority:  normal         |  Milestone:  4.11.1
Component:  filesystem     |    Version:  4.11
 Severity:  normal         |   Keywords:
 From the reporter (Круглов Сергей <skruglov at nm.ru>):

 * First bug I detect with attempt write file to full device (zero empty
 * And after I send too many files, disk overflow and system not responding
 (receive and write to disk have high priority). A test, and found block=0,
 after -- = too big value.
 * In imfs_memfile.c
 function IMFS_memfile_extend
 block declared: unsigned int   block, and after block— work incorrect (if
 block = 0).
 for ( ; block>=old_blocks ; block-- ) {
   IMFS_memfile_remove_block( memfile, block );

 Must be declare int block;

Ticket URL: <http://devel.rtems.org/ticket/2353>
RTEMS Project <http://www.rtems.org/>
RTEMS Project

More information about the bugs mailing list