Implement nsLocalFile::GetDiskCapacity on Windows
Categories
(Core :: XPCOM, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox97 | --- | fixed |
People
(Reporter: janv, Assigned: jjalkanen)
References
Details
Attachments
(1 file)
We are adding a new nsIFile attribute in bug 1735717 and the initial patch implements it only on unix/mac. We need Windows implementation as well.
Assignee | ||
Comment 2•3 years ago
|
||
Assignee | ||
Comment 3•3 years ago
|
||
To avoid misunderstandings, should this return the total size of the hard drive, or total size of the OS partition, or the total size available to the user, or something else?
Reporter | ||
Comment 4•3 years ago
|
||
(In reply to Jari Jalkanen from comment #3)
To avoid misunderstandings, should this return the total size of the hard drive, or total size of the OS partition, or the total size available to the user, or something else?
I think returning total size of the hard drive doesn't make sense. It should be related to the file/directory which nsIFile represents, so total size of the OS partition is probably what we want here. The Unix implementations takes into account quota limits, so the total size available to the user would be even better it seems.
I quickly looked at the GetDiskSpaceAvailable
implementation on Windows and it uses GetDiskFreeSpaceExW
. I would probably use the same function in GetDiskCapacity
.
Assignee | ||
Comment 5•3 years ago
|
||
Depends on D130640
Updated•3 years ago
|
Pushed by jjalkanen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9732cf85df9f Get disk capacity on Windows. r=dom-storage-reviewers,janv,xpcom-reviewers,nika DONTBUILD
Comment 7•2 years ago
|
||
bugherder |
Description
•