[RTEMS Project] #2944: FAT data corruption during unmount()

RTEMS trac trac at rtems.org
Mon Mar 20 21:21:33 UTC 2017


#2944: FAT data corruption during unmount()
-----------------------------+-----------------------
 Reporter:  Sebastian Huber  |       Owner:  chrisj@…
     Type:  defect           |      Status:  new
 Priority:  normal           |   Milestone:  4.12
Component:  filesystem       |     Version:  4.11
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+-----------------------

Comment (by Chris Johns):

 Replying to [ticket:2944 Sebastian Huber]:
 > Removing the function call in msdos_shut_down ( .. ) to close the root
 file descriptor solves the problem perfectly (clean fsck).

 I assume you mean fat_file_close?

 > However, we're a bit unsure about the intent behind closing the root
 directory.

 There is memory allocated in fat_file_open which you would leak.

 I see the fat_file_close calls fat_buf_release and if the fs_info cache is
 not empty it is holding a bdbuf buffer so this would cause a leak of
 buffers.

 What about the fat_file_close calls in the msdos init call on error? Would
 they also cause the same problem?

--
Ticket URL: <http://devel.rtems.org/ticket/2944#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list