Closed
Bug 876560
Opened 13 years ago
Closed 8 years ago
[Media Storage] - After pushing content to device, reported media storage does not update - only after a reboot does reported storage update
Categories
(Firefox OS Graveyard :: Gaia::Settings, defect)
Tracking
(blocking-b2g:-, b2g18+)
People
(Reporter: aaronmt, Unassigned)
References
Details
(Whiteboard: [mozilla-triage])
Currently in our v1.0.1 builds when we push content to /mnt/sdcard, we do not see a reflection of estimated storage size on the device in the Media Storage pane of settings. We see 0KB reported across the board. Only after a reboot of B2G do we see a reflection of the reported estimates.
GaiaUI Test Issue: https://github.com/mozilla/gaia-ui-tests/issues/869
GaiaUI Test: https://github.com/mozilla/gaia-ui-tests/blob/master/gaiatest/tests/settings/test_settings_media_storage.py
Steps to Reproduce:
i) Push some content to /mnt/sdcard
ii) Check Media Storage, and see 0KB reported for Music/Pictures/Movies
Expected Results: Reflection of estimated storage size for pushed content
Actual Results: 0KB reported
Workaround, restart B2G in order to see updated reflection of media storage estimates.
Gecko http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/5df7f057e3e3
Gaia 460bd2dbe44b5d9d6f497f5944e1b6c69db82c81
BuildID 20130527070203
Version 18.0
| Reporter | ||
Comment 1•13 years ago
|
||
Anyone else seeing this?
Comment 2•13 years ago
|
||
Yes, I am seeing the same, including the fact that the files are seen after a reboot. Is this different from bug 870538?
| Reporter | ||
Updated•13 years ago
|
Flags: needinfo?(dhylands)
| Reporter | ||
Updated•13 years ago
|
blocking-b2g: --- → leo?
Comment 3•13 years ago
|
||
Device Storage keeps a cache of used space.
When you manually push a file, you're bypassing the cache, and device storage doesn't know that the files have been pushed.
If you were to share your phone with the PC (using USB Mass Storage), and copy the files in, and then turn USB Mass Storage off, then device storage will invalidate its cache and refresh.
Adding files through device storage (using bluetooth, or saving an email attachment, etc) will also cause the cache to be invalidated.
I guess another way to "auto" invalidate the used space cache would be to detect that the free space has changed, and rescan. That would probably require exiting and reentering the media storage section in the settings app to re-trigger a call to get used space.
Flags: needinfo?(dhylands)
Comment 4•13 years ago
|
||
Thing about this specific test is that we run the identical test case - even down to the media files pushed - on nightly builds of b2g18/v1-train and it passes reliably, which suggests it's some difference at code level.
Comment 5•13 years ago
|
||
Also, our test is doing what dhylands suggests. After pushing the files to the phone we exit the settings app and then restart it and visit the Media Storage section, but the values do not show up unless we actually reboot the phone.
Comment 6•13 years ago
|
||
So I just built 1.0.1 and 1.1 for unagi, and they both behave the same for me.
There are a couple of issues that I see. The first is device storage's caching of the used space, and the second is when the settings app calls storage.usedSpace.
If I enter the Media Storage tab in settings, then it will call usedSpace. If I hit back and re-enter, then it doesn't.
If I hit Home, and then go back to settings, then it will call usedSpace again.
Across several invocations of usedSpace, if a file is added by pushing the file to device storage, then usedSpace continues to return the cached value.
If you take a photo with the Camera app, then the cache is invalidated, and the next time usedSpace is called, then the space will be recalculated.
So I see 2 issues:
- In the settings app, when I enter Media Storage, leave, and then re-enter, it should call usedSpace again.
- Device Storage should invalidate the cache if usedSpace is called and the freeSpace has changed.
Comment 7•13 years ago
|
||
Recommend not blocking, as this is a very minor usability issue according to the STR and workarounds in comment 6.
Whiteboard: [mozilla-triage]
Comment 8•13 years ago
|
||
As per comment 6 and 9 leo think not a blocker but track it.
blocking-b2g: leo? → -
tracking-b2g18:
--- → +
Comment 9•8 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•