#6532 BLOC Update1: SD Card Corruption

Zarro Boogs per Child bugtracker at laptop.org
Wed Jun 11 13:27:42 EDT 2008


#6532: SD Card Corruption
----------------------+-----------------------------------------------------
  Reporter:  haralds  |       Owner:  dsaxena          
      Type:  defect   |      Status:  assigned         
  Priority:  blocker  |   Milestone:  Update1.1 (8.1.1)
 Component:  kernel   |     Version:                   
Resolution:           |    Keywords:  release?         
  Verified:  0        |    Blocking:  6893             
 Blockedby:           |  
----------------------+-----------------------------------------------------

Comment(by cjb):

 Hi,

 > Chris, how hard would it be as a short-term measure to have our
 userspace either unmount the SD card or force a sync to the SD card before
 suspend?

 Suspend is mediated by OHM, so anything doable with root-running userspace
 code is possible.

 > force a sync to the SD card before suspend?

 Would there be anything more specific than sync(2) for doing so?  As a
 pessimal case, calling sync(2) iff there's an SD card inserted before
 suspending doesn't sound too bad.

 I'm still pretty confused about this, though.  Why is sync(2) required to
 avoid *partition table corruption*, and why doesn't this happen on USB?

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


More information about the Bugs mailing list