Ticket #7591 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Sugar should remove old content from the journal automatically if NAND is full.

Reported by: cscott Owned by: dgilmore
Priority: high Milestone: 8.1.1 (was Update1.1)
Component: initscripts Version: not specified
Keywords: Cc: epastorino, cjb, dgilmore
Action Needed: add to build Verified: no
Deployments affected: Blocked By:
Blocking: #7125


This is a controversial "straw-man" suggestion, originally from CJB:

In order to maintain a usable system, cjb proposed, "Here's a straw-man: if disk is full at boot, delete the single largest journal entry, iterate until disk is not full anymore."

Change History

Changed 6 years ago by cscott

  • blocking 7125 added

(In #7125) Here's a list of tasks associated with this general bug, and trac #s for them:

  • the initscripts should be sure to unfreeze the dcon if/when X fails to start. This ensures that the system is obviously recoverable (you can recover by rebooting with the check key held down, but this is not obvious!). (#7586)
  • sugar should, ideally, start even if flash is full. It is currently failing when writing to ~olpc/.boot_time or some such, and crashing. (#7587)
  • once sugar starts, there should be a message indicating that the NAND is critically full. (#7588)
  • trying to save new content to the journal should also give an obvious message that the NAND is full. (#7589)
  • removing content from the journal should work even if NAND is full. (#7590)
  • automatically remove content from the journal is NAND is full? (controversial) (#7591)
  • Jffs2 is slow when it fills/root should have reserved space (#5317)

Changed 6 years ago by mstone

Actually, something init-like should remove old content because Sugar probably won't start.

Changed 6 years ago by mstone

  • cc epastorino added
  • owner changed from marco to dgilmore
  • next_action changed from never set to design
  • component changed from sugar to initscripts
  • priority changed from normal to high

Changed 6 years ago by cjb

  • cc cjb added
  • next_action changed from design to review

Changed 6 years ago by kimquirk

  • cc dgilmore added
  • next_action changed from review to add to build
  • milestone changed from 8.2.0 (was Update.2) to 8.1.1 (was Update1.1)

We need to get this into a 709 build (8.1.2) and start testing.

Changed 6 years ago by dgilmore

this needs to be in a package to get into a build.

Changed 6 years ago by cjb

The python script is:



  • fill the NAND up completely with files in any of:

/home/olpc/.sugar/default/data /home/olpc/.sugar/default/datastore/store /home/olpc/Activities/, and then reboot:

  • .. on both a US mfg data machine and a Spanish mfg data machine
  • .. with both pretty boot enabled and pretty boot disabled
  • check that the text is displayed in English and Spanish correctly
  • check that pressing a key causes the largest files to be deleted until there's more than 20M free space on the NAND

Changed 6 years ago by cscott

What's the status here? I don't think "add to build" is appropriate any more, is it?

Changed 6 years ago by cjb

  • status changed from new to closed
  • resolution set to fixed

It's in and tested and shipped (in 8.1.2). Closing.

Note: See TracTickets for help on using tickets.