#11786 NORM 1.75-fi: ext2 filesystem made full, space not released by delete

Zarro Boogs per Child bugtracker at laptop.org
Thu Apr 19 01:08:19 EDT 2012


#11786: ext2 filesystem made full, space not released by delete
-------------------------------------------+--------------------------------
           Reporter:  Quozl                |       Owner:  Quozl               
               Type:  defect               |      Status:  new                 
           Priority:  normal               |   Milestone:  1.75-firmware       
          Component:  ofw - open firmware  |     Version:  Development firmware
         Resolution:                       |    Keywords:                      
        Next_action:  design               |    Verified:  0                   
Deployment_affected:                       |   Blockedby:                      
           Blocking:                       |  
-------------------------------------------+--------------------------------
Changes (by Quozl):

  * next_action:  reproduce => design


Comment:

 The symptom is caused by ''direct-unlink'' skipping ''idelete'', in turn
 because ''+link-count'' does not decrement the link count.  This was added
 in [http://tracker.coreboot.org/trac/openfirmware/changeset/2817 svn
 2817].

 Minimal reproducer:

 {{{
 ok " int:\test" r/w open-file drop close-file
 }}}

 How to detect the damage and clean the filesystem:

 {{{
 umount -a
 e2fsck -f /dev/mmcblk0p1
 }}}

 A workaround:

 {{{
 dev /packages/ext2-file-system
 : +link-count'
    dir? link-count 1 = and  if  drop exit  then
    link-count +  dup d# 65000 >=  if  drop 1  then
    link-count!
 ;
 patch +link-count' +link-count dirent-unlink
 patch +link-count' +link-count fill-dirent
 }}}

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


More information about the Bugs mailing list