FS: Connect sync access handles to quota management
Categories
(Core :: DOM: File, task, P2)
Tracking
()
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.
Assignee | ||
Comment 1•2 years ago
|
||
I'll start adding separate bugs for this.
Assignee | ||
Comment 2•2 years ago
|
||
Depends on D157822
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
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
Comment 5•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4a9685fe5878
https://hg.mozilla.org/mozilla-central/rev/ef0d179e0aeb
Description
•