#5029 NORM Never A: OFW FAT FS can truncate written files

Zarro Boogs per Child bugtracker at laptop.org
Tue Nov 20 02:27:40 EST 2007


#5029: OFW FAT FS can truncate written files
---------------------------------+------------------------------------------
 Reporter:  wmb at firmworks.com    |       Owner:  wmb at firmworks.com
     Type:  defect               |      Status:  new              
 Priority:  normal               |   Milestone:  Never Assigned   
Component:  ofw - open firmware  |     Version:                   
 Keywords:                       |    Verified:  0                
---------------------------------+------------------------------------------
 The following sequence:

 {{{
 ok writing u:\test
 ok origin 4000 ofd @ fputs
 ok ofd @ fclose
 }}}

 appears to succeed, but then if look at the file size with "dir",
 the file size is 0x400 bytes shorter than it is supposed to be.

 This sequence, however, works correctly:

 {{{
 ok " u:\test" $create-file iselect
 ok origin 4000 write .
 ok unselect
 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/5029>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list