Closed Bug 861898 (low-storage) Opened 11 years ago Closed 6 years ago

[META] Low device free space

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ferjm, Unassigned)

References

(Depends on 3 open bugs)

Details

      No description provided.
Depends on: 853350
Depends on: 861894
Depends on: 858674
Depends on: 861903
Depends on: 861920
Alias: low-storage
Depends on: 861921
Depends on: 862408
Depends on: 863596
Test cases planned here:

* [ ]Test that when the phone reaches the 10 MB limit trying to schedule appcache resources for a HTML page fires a warning to the user that device storage is low
* [ ]Test that when the phone reaches the 10 MB limit trying to write to local storage for a HTML page fires a warning to the user that device storage is low
* [ ]Test that when the phone reaches the 10 MB limit trying to write to indexed DB for a HTML page fires a warning to the user that the device storage is low
* [ ]Test that when the phone reaches the 10 MB limit trying to write temporary OTA update files to device storage (no sdcard present) fires a warning to the user that device storage is low
* [ ]Test that when the phone reaches the 5 MB limit for device storage upon trying to schedule appcache resources for a HTML page fires an error saying the update was unsuccessful due to low storage with no writes resulting on the underlying storage
* [ ]Test that when the phone reaches the 5 MB limit for device storage upon trying to write to local storage for a HTML page fires an error saying the update was unsuccessful due to low storage with no writes resulting on the underlying storage
* [ ]Test that when the phone reaches the 5 MB limit for device storage upon trying to write to Indexed DB for a HTML page fires an error saying the update was unsuccessful due to low storage with no writes resulting on the underlying storage
* [ ]Test that when the phone reaches the 5 MB limit trying to write temporary OTA update files to device storage (no sdcard present) fires an error saying the update was unsuccessful due to low storage with no writes resulting on the underlying storage
* [ ]Test that when the phone reaches the 0 MB limit trying to create a screenshot on the sdcard fires an error indicating that the storage is unavailable with no writes to it
* [ ]Test that when the phone reaches the 0 MB limit trying to write temporary OTA update files to the sdcard fires an error indicating that the storage is unavailable with no writes to it
* [ ]Test that when the phone is between the 10 MB to 5 MB threshold for device storage that a user should be able to write to their device storage

Currently getting slowed down trying to find a device that actually supports fanotify.
The low storage threshold is 5MB. 10MB is the space storage that the device needs to have to be considered as recovered from a low storage situation.

Also, a permanent notification is shown in the status bar as soon as the DiskSpaceWatcher notifies about a low storage situation. At that point, offline cache, indexedDB and localStorage writes should fail, but there won't be any detailed explanation to the user about why it failed.
Thanks for the feedback. Now that I was able to get a basic sanity test to work, I updated the test cases to reflect what I know now.

* [ ]Test that when the phone reaches the 5 MB limit for device storage upon trying to schedule appcache resources for a HTML page indicates a warning that storage is low and prevents writing those appcache resources
* [ ]Test that when the phone reaches the 5 MB limit for device storage upon trying to write to local storage for a HTML page indicates a warning that storage is low and prevents writing those local storage resources
* [ ]Test that when the phone reaches the 5 MB limit for device storage upon trying to write to Indexed DB for a HTML page indicates a warning that storage is low and prevents writing those indexed DB resources
* [ ]Test that when the phone reaches the 5 MB limit trying to write temporary OTA update files to device storage (no sdcard present) indicates a warning that storage is low and prevents writing those files
* [ ]Test that when the phone is between 10 MB to 5 MB without hitting the 5 MB limit for device storage that a user should be able to write to their device storage for appcache
* [ ]Test that when the phone is between 10 MB to 5 MB without hitting the 5 MB limit for device storage that a user should be able to write to their device storage for indexed DB
* [ ]Test that when the phone is between 10 MB to 5 MB without hitting the 5 MB limit for device storage that a user should be able to write to their device storage for local storage
* [ ]Test that when the phone is between the 10 MB to 5 MB threshold after hitting the 5 MB limit for device storage that a user should not be able to write to their device storage for appcache
* [ ]Test that when the phone is between the 10 MB to 5 MB threshold after hitting the 5 MB limit for device storage that a user should not be able to write to their device storage for indexed DB
* [ ]Test that when the phone is between the 10 MB to 5 MB threshold after hitting the 5 MB limit for device storage that a user should not be able to write to their device storage for local storage
* [ ]Test that when the phone is between the 10 MB to 5 MB threshold after hitting the 5 MB limit for device storage that a persistent notification should present indicating that device storage is low
Depends on: 880870
Depends on: 882098
Depends on: sms-low-storage
Dear Jason,
Just like the bluetooth:

When the memory is full, we cant turn on the bluetooth actually, but the switch shows on and did not inform the user the bluetooth dont work in reality(though there is a permanent notification). It is not proper, when will you solve this???

Thanks a lot!
Flags: needinfo?(jsmith)
I'd file a bug in Gaia::Settings for the issue you hit and link it to this meta bug.
Flags: needinfo?(jsmith)
Depends on: 903903
See Also: → 906609
Depends on: 906609
See Also: 906609
Blocks: 904518
Depends on: 912723
Depends on: 915015
Depends on: 915016
Depends on: 915017
Depends on: 915021
blocking-b2g: --- → 1.3?
Meta bugs don't block - clearing flag.
blocking-b2g: 1.3? → ---
When there is no space in the sdcard, the sms messages can't be sent.
Depends on: 1114884
Depends on: LowStorage
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.