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
filesystemAvailable and related functions support one optional argument with disk name #42064
Conversation
…nt with disk name
{ | ||
static constexpr auto name = "filesystemFree"; | ||
static std::uintmax_t get(const std::filesystem::space_info & spaceinfo) { return spaceinfo.free; } | ||
static constexpr auto name = "filesystemUnreserved"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that we can change the name now, because this function was added a long time ago. Maybe add an alias for old name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But filesystemFree
is not same as filesystemUnreserved
, and we can not get free space from IDisk
interface, so I changed the function to filesystemUnreserved
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. Then, let's mention it in changelog and mark PR as backward-incompatible.
The reason was that I fixed it in #43461 and merged it. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
filesystemAvailable
and related functions support one optional argument with disk name, and changefilesystemFree
tofilesystemUnreserved
. Closes #35076.