#11814 NORM 1.75-fi: ext2 filesystem flush fails with 0 attempt to corrupt superblock or group descriptor

Zarro Boogs per Child bugtracker at laptop.org
Tue Apr 24 21:35:07 EDT 2012


#11814: ext2 filesystem flush fails with 0 attempt to corrupt superblock or group
descriptor
---------------------------------+------------------------------------------
 Reporter:  Quozl                |                 Owner:  Quozl               
     Type:  defect               |                Status:  new                 
 Priority:  normal               |             Milestone:  1.75-firmware       
Component:  ofw - open firmware  |               Version:  Development firmware
 Keywords:                       |           Next_action:  never set           
 Verified:  0                    |   Deployment_affected:                      
Blockedby:                       |              Blocking:                      
---------------------------------+------------------------------------------
 In Open Firmware, if a reasonable amount of data is written to a file on
 the ext2 filesystem on a USB drive, the close flush fails with a message:

 {{{
 0 attempt to corrupt superblock or group descriptor
 }}}

 Reproducer on a 128MB USB flash drive created using ext2test.sh:
 {{{
 \ OLPC boot script

 visible
 no-page

 .( test 0025 space released after delete ) cr

 0 value fd
 0 value buf
 d# 1024 dup * constant /buf
 d# 32 value big

 : make-big-file  ( "file" -- )
    parse-word
    r/w open-file abort" can't open file" to fd
    /buf alloc-mem to buf
    buf /buf erase
    big 0 do  buf /buf fd fputs  [char] . emit  loop
    buf /buf free-mem
    fd close-file abort" can't close file"
 ;

 make-big-file u:\big
 }}}

 Q4D11 XO-1.75 os884

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


More information about the Bugs mailing list