Closed
Bug 769312
Opened 12 years ago
Closed 12 years ago
[OS.File] Separate OS.File.Error from worker-only code
Categories
(Core :: Networking: File, enhancement)
Core
Networking: File
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: Yoric, Assigned: Yoric)
References
Details
Attachments
(5 files, 5 obsolete files)
(deleted),
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Yoric
:
review+
|
Details | Diff | Splinter Review |
At the moment, OS.File.Error is tightly coupled with worker-only code. This is not a good idea, as we will want to represent I/O errors also on the main thread.
Assignee | ||
Comment 1•12 years ago
|
||
Note a subtlety:
- the Unix version requires OS.Unix.strerror;
- the Windows version requires OS.Win.FormatMessage, OS.Constants.Win.FORMAT_MESSAGE_FROM_SYSTEM, OS.Constants.Win.FORMAT_MESSAGE_IGNORE_INSERTS.
Assignee | ||
Updated•12 years ago
|
Severity: normal → enhancement
OS: Mac OS X → All
Hardware: x86 → All
Assignee | ||
Comment 2•12 years ago
|
||
Assignee: nobody → dteller
Attachment #641868 -
Flags: review?(taras.mozilla)
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #641870 -
Flags: review?(taras.mozilla)
Assignee | ||
Updated•12 years ago
|
Attachment #641868 -
Attachment description: 1. Defining libc, OS.File.Error in their own file. → 1. Defining libc, OS.File.Error in their own file (Unix).
Assignee | ||
Comment 4•12 years ago
|
||
Assignee | ||
Comment 5•12 years ago
|
||
Assignee | ||
Comment 6•12 years ago
|
||
Updated•12 years ago
|
Attachment #641868 -
Flags: review?(taras.mozilla) → review+
Updated•12 years ago
|
Attachment #641870 -
Flags: review?(taras.mozilla) → review+
Assignee | ||
Updated•12 years ago
|
Attachment #641871 -
Flags: review?(taras.mozilla)
Comment 7•12 years ago
|
||
Comment on attachment 641871 [details] [diff] [review]
3. Defining libc, OS.File.Error in their own file (Win)
no need to break out separate patches for each file.
Attachment #641871 -
Flags: review?(taras.mozilla) → review+
Assignee | ||
Updated•12 years ago
|
Attachment #641872 -
Attachment is patch: true
Attachment #641872 -
Flags: review?(taras.mozilla)
Updated•12 years ago
|
Attachment #641872 -
Flags: review?(taras.mozilla) → review+
Assignee | ||
Comment 8•12 years ago
|
||
I will take advantage of the opportunity to rename files.
Attachment #641874 -
Attachment is obsolete: true
Attachment #646124 -
Flags: review+
Assignee | ||
Comment 9•12 years ago
|
||
Attachment #641868 -
Attachment is obsolete: true
Attachment #646125 -
Flags: review+
Assignee | ||
Comment 10•12 years ago
|
||
Attachment #641870 -
Attachment is obsolete: true
Attachment #646126 -
Flags: review+
Assignee | ||
Comment 11•12 years ago
|
||
Attachment #641871 -
Attachment is obsolete: true
Attachment #646127 -
Flags: review+
Assignee | ||
Comment 12•12 years ago
|
||
Attachment #641872 -
Attachment is obsolete: true
Attachment #646128 -
Flags: review+
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 13•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/3ca5142e757d
https://hg.mozilla.org/integration/mozilla-inbound/rev/3b931642e993
https://hg.mozilla.org/integration/mozilla-inbound/rev/48fb9e5ec22d
https://hg.mozilla.org/integration/mozilla-inbound/rev/8ff952f8a4c7
https://hg.mozilla.org/integration/mozilla-inbound/rev/e255eaa167fa
Should this have tests?
Flags: in-testsuite?
Keywords: checkin-needed
Comment 14•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3ca5142e757d
https://hg.mozilla.org/mozilla-central/rev/3b931642e993
https://hg.mozilla.org/mozilla-central/rev/48fb9e5ec22d
https://hg.mozilla.org/mozilla-central/rev/8ff952f8a4c7
https://hg.mozilla.org/mozilla-central/rev/e255eaa167fa
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Comment 15•12 years ago
|
||
Small request: please add commit messages with a bit more detail as to function to patches. This landed as:
David Rajchenbach-Teller — Bug 769312 - Adapt the rest of the code (Windows side).
David Rajchenbach-Teller — Bug 769312 - Windows errors. r=taras
David Rajchenbach-Teller — Bug 769312 - Adapt the rest of the code (Unix side).
David Rajchenbach-Teller — Bug 769312 - Unix errors. r=taras
David Rajchenbach-Teller — Bug 769312 - Shared code. r=yoric
...which isn't very useful for tree-watching or future file changelog digging. Bug titles are generally enough (and easy!).
You need to log in
before you can comment on or make changes to this bug.
Description
•