Closed Bug 1789590 Opened 2 years ago Closed 1 year ago

FS: Connect sync access handles to quota management

Categories

(Core :: DOM: File, task, P2)

task

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: janv, Assigned: janv)

References

Details

Attachments

(2 files)

Writing to files was always done in the parent process, so all our supporting helpers reflect that. However, sync access handles need to be very fast, so we decided to do I/O mostly on the child side. We will need to add some new infrastructure and adjust existing helpers to be able to do the quota checks on the child side. One of the features should be pre-allocation of usage, so we won't need to synchronously talk with the parent process before each write operation.

I'll start adding separate bugs for this.

Depends on: 1790960
Depends on: 1791750
Assignee: nobody → jvarga
Status: NEW → ASSIGNED
Depends on: 1797913
Depends on: 1803062

PFileSystemManager and PRemoteQuotaObject are independent top level protocols.
It can happen that the parent actor for PFileSystemManager is destroyed before
PRemoteQuotaObject parent actors are destroyed. So CanonicalQuotaObjects would
still exist after releasing the directory lock which would lead to assertions
in quota manager in the end. This patch prevents that by tracking parent actors
for PRemoteQuotaObject and releases the data manager when everything is
properly destroyed.

Depends on D164341

Pushed by jvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4a9685fe5878
Implement and hook up FileSystemStreamCallbacks; r=dom-storage-reviewers,jari
https://hg.mozilla.org/integration/autoland/rev/ef0d179e0aeb
FS: Connect sync access handles to quota management; r=dom-storage-reviewers,jesup
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
Depends on: 1806362
No longer depends on: 1806362
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: