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

Fix #1049, replace OS_fsBlocksFree #1050

Merged

Conversation

jphickey
Copy link
Contributor

Describe the contribution
Use OS_FileSysStatVolume() instead of OS_fsBlocksFree() which will be deprecated in the future.

This also enables the check to be more appropriate as this call reports the number of total blocks, not just the free blocks, so no workaround for desktop machines is needed.

Fixes #1049

Testing performed
Build and run all unit tests
Sanity check CFE

Expected behavior changes
No impact to behavior.

System(s) tested on
Ubuntu 20.04
RTEMS 4.11

Additional context
No longer needs a workaround for running on desktop system, since the new API also returns the total blocks, not just free blocks.

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

Use OS_FileSysStatVolume() instead.  This also enables the check
to be more appropriate as this call reports the number of total
blocks, not just the free blocks, so no workaround for desktop
machines is needed.
@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Dec 29, 2020
@skliper
Copy link
Contributor

skliper commented Jan 4, 2021

Depends on nasa/osal#717

@astrogeco astrogeco added CCB-20210106 dependency and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Jan 6, 2021
@astrogeco
Copy link
Contributor

CCB 2021-01-06 APPROVED

depends on nasa/osal#717

@astrogeco astrogeco changed the base branch from main to integration-candidate January 12, 2021 19:27
@astrogeco astrogeco merged commit eaa850f into nasa:integration-candidate Jan 12, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request Jan 12, 2021
@jphickey jphickey deleted the fix-1049-fsblocksfree branch February 1, 2021 19:46
@skliper skliper added this to the 7.0.0 milestone Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace calls to OS_fsBlocksFree
3 participants