#9368 NORM 1.5-F11: diskspacerecover needs update for new sugar datastore format

Zarro Boogs per Child bugtracker at laptop.org
Fri Jun 26 06:13:10 EDT 2009


#9368: diskspacerecover needs update for new sugar datastore format
---------------------------------+------------------------------------------
           Reporter:  dsd        |       Owner:  dsd          
               Type:  defect     |      Status:  new          
           Priority:  normal     |   Milestone:  1.5-F11      
          Component:  distro     |     Version:  not specified
         Resolution:             |    Keywords:               
        Next_action:  never set  |    Verified:  0            
Deployment_affected:             |   Blockedby:               
           Blocking:             |  
---------------------------------+------------------------------------------

Comment(by dsd):

 http://wiki.sugarlabs.org/go/Development_Team/Datastore_Rewrite

 My suggested algorithm:

 One datastore entry is one of the directories under a 2-character prefix
 directory e.g. f3/f3c50947...

 Find the entries that you want to delete and for each entry:
  * Read checksum into memory from <entry>/metadata/checksum
  * Find corresponding directory <datastore root>/checksums/<checksum>
    * this directory contains a number of empty files, with names that
 refer to datastore entries
  * Delete all the datastore entries referenced by the checksums directory
  * Delete the checksums directory

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


More information about the Bugs mailing list