#11349 LOW Opportu: XO-1.75 Q4B12ja (svn 2623) leaves an ext2 filesystem inconsistent after a file delete

Zarro Boogs per Child bugtracker at laptop.org
Tue Oct 18 02:34:52 EDT 2011


#11349: XO-1.75 Q4B12ja (svn 2623) leaves an ext2 filesystem inconsistent after a
file delete
---------------------------------+------------------------------------------
 Reporter:  Quozl                |                 Owner:  wmb at firmworks.com   
     Type:  defect               |                Status:  new                 
 Priority:  low                  |             Milestone:  Opportunity         
Component:  ofw - open firmware  |               Version:  Development firmware
 Keywords:                       |           Next_action:  diagnose            
 Verified:  0                    |   Deployment_affected:                      
Blockedby:                       |              Blocking:                      
---------------------------------+------------------------------------------
 After test 0023 glob file copy in the ext2test.fth the filesystem is left
 in an inconsistent state as reported by e2fsck on build 881:

 {{{
 bash-4.1# e2fsck -f /dev/sda1
 e2fsck 1.41.12 (17-May-2010)
 Pass 1: Checking inodes, blocks, and sizes
 Pass 2: Checking directory structure
 Entry 'f.tst' in / (2) has deleted/unused inode 26.  Clear<y>?
 }}}

 It is the last file deleted in the script that is affected.

 Tested on a 128MB and a 2GB USB flash drive.

 The minimum reproducer is an olpc.fth file containing:
 {{{
 \ OLPC

 to-file u:\f.tst cr
 del u:\f.tst
 }}}

 Adding a ''dir u:\'' command to the end of the reproducer prevents the
 symptom.  Theory: a cache is flushed.

 Entering the commands interactively instead of using \boot\olpc.fth makes
 no difference to the symptom.

 Deleting a pre-existing file does not produce the symptom.

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


More information about the Bugs mailing list