Closed
Bug 794397
Opened 12 years ago
Closed 7 years ago
API to get the total capacity of the SD card
Categories
(Firefox OS Graveyard :: General, defect, P4)
Tracking
(blocking-basecamp:-)
RESOLVED
WONTFIX
blocking-basecamp | - |
People
(Reporter: rudyl, Unassigned)
References
Details
Attachments
(1 file)
7.59 KB,
patch
|
Details | Diff | Splinter Review |
The story is to have a usage bar for the SD card in "Media Storage" section of settings app.
- Please refer to P.17 of
http://people.mozilla.org/~lco/Settings_B2G/Release_1_Specs/R1_Device_v3.pdf
So far we could only get free/used size for each type of device Storage, like video/music/photo.
Corresponding Gaia issue:
https://github.com/mozilla-b2g/gaia/issues/3971
Reporter | ||
Updated•12 years ago
|
blocking-basecamp: --- → ?
Comment 2•12 years ago
|
||
Since this blocks some gaia features, I think we should block on it. Plus Doug said he hopes to get to it today :)
blocking-basecamp: ? → +
Comment 3•12 years ago
|
||
Hey Doug, what's the ETA for this?
We currently have APIs for getting the total amount of used space, and total amount of free space. The former is implemented by going through all directories and stat()ing all files and summing up their size. The latter is done by stat()ing the volume and asking for amount of free space.
In the UI that we are planning on showing we show total size, used size and free size. Doing that is currently possible by simply calling the two functions above and then adding those numbers up.
However it would be a whole lot faster if we also had an API for stat()ing the volume and asking it for its total size.
That way you could just ask for volume size and free size. And then subtracting to get used size.
So I'm not convinced that this is a blocker still since you now can implement the required UI. But it would be a nice performance enhancement to fix this.
Based on that I'm punting this to blocking- but leaving assigned to Doug so he can do this if he has free cycles.
blocking-basecamp: + → -
Comment 5•12 years ago
|
||
I think rudy now has everything he needs to implement this feature as spec'ed out in P.17.
Rudy, please reopen if you disagree. (or find me on irc if you don't know what Im talking about :) )
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
I don't think this bug in INVALID given that there is a pretty dramatic performance difference between just stat()ing the volume vs. stat()ing each file. So I think we'll want to fix this eventually. But I think blocking- is appropriate unless we find that the current solution is simply too slow (at which point people can renominate this)
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Updated•12 years ago
|
blocking-basecamp: - → ?
blocking-basecamp: ? → +
Priority: -- → P3
Comment 7•12 years ago
|
||
Why was this changed to blocking+?
Also, given that this is new, it should be P1 to reflect the risk that any feature work has at this point.
(Please always add a comment, however short, explaining rationale for marking blocking or not. It really reduces communication churn.)
Comment 8•12 years ago
|
||
dietrich, see bug 805718 which blocks this bug (which is blocking-basecamp+)
Comment 9•12 years ago
|
||
s/blocks this/depends on this
Comment 10•12 years ago
|
||
Been >2 weeks - any update Doug?
Comment 11•12 years ago
|
||
Here we say it depends upon bug 805718 but in that bug Kaze says we just need to fix this bug :)
Renomming for discussion at triage.
blocking-basecamp: + → ?
Comment 12•12 years ago
|
||
Doug described this is simply a round-off error. I'm marking this as a soft blocker.
blocking-basecamp: ? → -
Priority: P3 → P4
Comment 13•12 years ago
|
||
minused. attaching what work i did already. Basically what has to happen next is that we should not use the volume manager, but instead just call statfs() directly.
Comment 14•12 years ago
|
||
unassigning things that I am not working on.
Updated•12 years ago
|
Assignee: doug.turner → nobody
Comment 15•7 years ago
|
||
Firefox OS is not being worked on
Status: REOPENED → RESOLVED
Closed: 12 years ago → 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•