Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IO] Remove read-only logic in mono_w32_get_disk_free_space (#17177) #1267

Merged
merged 1 commit into from
Mar 13, 2020

Conversation

douglas-piconi
Copy link

@douglas-piconi douglas-piconi commented Mar 4, 2020

Unity: case 1221933- Fixes Catalina OSX returning 0 for disk space on read only drives.

Cherry-picked from upstream, fixes mono returning 0 on drives marked as read only. This turned out to be a bigger problem on Catalina than other systems.

Alex tested for me on his Catalina macbook
output before fix
Volume: / -- Available space: 0 bytes

output after fix
Volume: / -- Available space: 51340992921

This brings us in line with GetDiskFreeSpaceExW on Windows as well as .NET Core.
@unity-cla-assistant
Copy link
Collaborator

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@UnityAlex
Copy link
Collaborator

Does this fix a specific bug that we have? If so do you have a # handy?

@douglas-piconi
Copy link
Author

Does this fix a specific bug that we have? If so do you have a # handy?

ok, fixed the PR description Alex. I still have to actually test this, but wanted to get code review underway.

@joncham joncham merged commit cb59e89 into unity-master Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants