The total space for app. storage is inconsistent



Firefox OS
5 years ago
3 years ago


(Reporter: rudyl, Unassigned)


(Depends on: 1 bug)

B2G C2 (20nov-10dec)
Mac OS X

Firefox Tracking Flags




(1 attachment)

Created attachment 675433 [details]
screenshot for total size of app. storage

Now we get the total size of app. storage by used size + free size.
It seems that this would introduce inconsistent value.

1. After flashing, go to Settings app. > Device Storage
   - Check the total space of application storage

2. Do something to consume the storage space, like go to Gallery app. 

3. repeat 1) to check total space

   The total space should remain the same.

   The total space is changed.

Comment 1

5 years ago
my bug.
Assignee: nobody → doug.turner
blocking-basecamp: ? → +
Priority: -- → P2

Comment 2

5 years ago
Total space is calculated based on the sum of the "used space" the "free space".  As files changes on the /data partition (which they will alot), these two values will change.

One approach that df uses is to ceiling the value.  This should reduce the amount of turbulence that this number has.

Alternatively, we could fix 794397 and provide just the raw size of the partition.

Kaze, what do you think?


5 years ago
Flags: needinfo?(kaze)

Comment 3

5 years ago
Milestoning for C2 (deadline of 12/10), as this meets the criteria of "known P2 bugs found before or during C1".
Target Milestone: --- → B2G C2 (20nov-10dec)
I think the only proper fix would be to address bug 794397. This example lets me think that any rounding method will have its glitches regarding to the total space.
Flags: needinfo?(kaze)
Depends on: 794397
Been >2 weeks - any update Doug?
In bug 794397 we say that this bug blocks that one but here we say we should fix that one :)

Renomming for discussion at triage.
blocking-basecamp: + → ?
Doug described this is simply a round-off error.  I'm marking this as a soft blocker.
blocking-basecamp: ? → -
Priority: P2 → P4

Comment 8

5 years ago
unassigning things that I am not working on.


5 years ago
Assignee: doug.turner → nobody
See Also: → bug 1159186
You need to log in before you can comment on or make changes to this bug.