-
Notifications
You must be signed in to change notification settings - Fork 217
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
OS_fsBlocksFree returns a 32-bit value, but OS_statvfs_t.blocks_free is 64 bit #573
Comments
Similar to #570 -- while this return type ( I wouldn't recommend changing the return type for that reason. Would recommend to deprecate this API rather than change it, if it is really a problem. New code should just use the existing |
I'm fine with not changing it. I just wanted to bring it to the group's attention. |
Recommending deprecate in favor of using OS_statfs |
There is no OS_statfs. If OS_fsBlocksFree is removed, seems like there's no replacement (other than using statvfs directly). |
@jphickey could you clarify the "New code should just use the existing |
Hmm, you are correct, it looks like we do not expose the I can easily implement one as long as folks are in agreement that it is a reasonable solution. The structure currently is defined as:
Prototype would be:
Filesystem code has traditionally used strings/pathnames to identify objects so this is consistent with other filesystem calls, as opposed to using an osal_id_t to identify the filesystem (which would be more like the rest of OSAL). |
After this, we would deprecate |
I'm good with your suggestions above to resolve this issue. |
Add OS_FileSysStatVolume as replacement for OS_fsBytesFree and OS_fsBlocksFree.
Update unit tests and stubs for the new API call.
Add OS_FileSysStatVolume as replacement for OS_fsBytesFree and OS_fsBlocksFree. Update unit tests and stubs for the new API call. Does not (yet) deprecate the existing functions, as references still need to be updated elsewhere in apps.
Bring the example toolchain for i686-rtems4.11 back into sync with the current PSP and platform build module for this system.
…hain Fix nasa#573, Update RTEMS example toolchain
OS_fsBlocksFree returns a 32-bit value, but OS_statvfs_t.blocks_free is 64 bit.
The text was updated successfully, but these errors were encountered: