Closed Bug 807881 Opened 12 years ago Closed 12 years ago

[Bluetooth] Need to check SDCard status before receiving file by other devices

Categories

(Firefox OS Graveyard :: Gaia, defect, P1)

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-basecamp:+)

VERIFIED FIXED
B2G C1 (to 19nov)
blocking-basecamp +

People

(Reporter: iliu, Assigned: iliu)

Details

(Keywords: feature)

Attachments

(2 files)

Need to check SDCard status:
1. Exist or not
2. Mounted or not
3. Free space available or not
I think it should be blocking-basecamp + .
blocking-basecamp: --- → ?
Part of making a required feature work correctly -> P1.
blocking-basecamp: ? → +
Keywords: feature
Priority: -- → P1
Attachment #679196 - Flags: review?(dkuo)
Attachment #679196 - Flags: review?(dflanagan)
Comment on attachment 679196 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/6247

See comments on github. I think you can simplify your code quite a bit. But the two reasons you get r- here are:

1) there is an unnecessary extra call to stat() 

2) I think you should check for available space before asking the user to accept the transfer.
Attachment #679196 - Flags: review?(dflanagan) → review-
We're marking this bug with the C1 milestone since it follows the criteria of "unfinished feature work" (see https://etherpad.mozilla.org/b2g-convergence-schedule).

If this work is not finished by Nov19, this bug will need an exception and will be called out at the upcoming Exec Review.
Target Milestone: --- → B2G C1 (to 19nov)
(In reply to David Flanagan [:djf] from comment #4)
> Comment on attachment 679196 [details]
> Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/6247
> 
> See comments on github. I think you can simplify your code quite a bit. But
> the two reasons you get r- here are:
> 
> 1) there is an unnecessary extra call to stat() 
> 
> 2) I think you should check for available space before asking the user to
> accept the transfer.

Hi David,
I have refined above comments in the latest patch.
Could you help to review my patch?
Thank you.
Priority: P1 → --
Attachment #679196 - Flags: review- → review?(dflanagan)
Priority: -- → P1
Comment on attachment 679196 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/6247

I had quite a few comments on the code in github. They are code clarity issues, mostly. If you have the time, I think you can still improve the code, but r+ to land because I suspect you want this to work in time for the demo.
Attachment #679196 - Flags: review?(dflanagan) → review+
David,

Eric and I have discussed yesterday and we decided to demo receiving files via bluetooth, but without opening the received file because Ian's PR was reviewing and he is in Taipei, so I think it will be better for Ian to improve the code more, especially some typo or simple case handling. Also we have a problem about deviceStorage that uses "sdcard", I will help Ian to figure out how to use deviceStorage correctly after I am back to Taipei, so I am giving a r- first before this patch improves.
Attachment #679196 - Flags: review?(dkuo) → review-
Comment on attachment 679196 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/6247

According David's comment and previous discussion, I have refined the patch.
Could Dominic help to review my patch?
Thank you.
Attachment #679196 - Flags: review- → review?(dkuo)
(In reply to Ian Liu [:ianliu] from comment #9)
> Comment on attachment 679196 [details]
> Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/6247
> 
For the patch, Bluetooth APP will do the error handle to check SDCard status before receiving file by other devices. 
In side of platform, Bluetooth API will do the same error handle too.
Note to QA: In general case, we could not reproduce the issue.

> According David's comment and previous discussion, I have refined the patch.
> Could Dominic help to review my patch?
> Thank you.
Comment on attachment 679196 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/6247

r+, and please see github comments.
Attachment #679196 - Flags: review?(dkuo) → review+
(In reply to Ian Liu [:ianliu] from comment #10)
> (In reply to Ian Liu [:ianliu] from comment #9)
> > Comment on attachment 679196 [details]
> > Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/6247
> > 
> For the patch, Bluetooth APP will do the error handle to check SDCard status
> before receiving file by other devices. 
> In side of platform, Bluetooth API will do the same error handle too.
> Note to QA: In general case, we could not reproduce the issue.
> 
Please reference the issue link: https://bugzilla.mozilla.org/show_bug.cgi?id=809538
> > According David's comment and previous discussion, I have refined the patch.
> > Could Dominic help to review my patch?
> > Thank you.
Since the pr https://github.com/mozilla-b2g/gaia/pull/6247 is merged, we can close the issue.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Works fine on Unagi build 20130103070201
Works fine on Unagi build 20130103070201.
See screen shot attachment.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: