-
Notifications
You must be signed in to change notification settings - Fork 26
samples: subsys: fs: bm_zms: add wait after clear #490
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
base: main
Are you sure you want to change the base?
Conversation
|
You can find the documentation preview for this PR here. |
e55e8c4 to
a73dfb8
Compare
a73dfb8 to
b9a5b6f
Compare
b9a5b6f to
f446ab9
Compare
doc/nrf-bm/libraries/bm_zms.rst
Outdated
| Clearing the storage system | ||
| =========================== | ||
|
|
||
| The :c:func:`bm_zms_clear` function must be called to clear the storage. |
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.
| The :c:func:`bm_zms_clear` function must be called to clear the storage. | |
| Call the :c:func:`bm_zms_clear` function to clear the storage. |
doc/nrf-bm/libraries/bm_zms.rst
Outdated
| The :c:func:`bm_zms_clear` function must be called to clear the storage. | ||
|
|
||
| When this uninitialization is successful, the library sets the flag :c:member:`bm_zms_fs.init_flags.initialized` to false. | ||
| For asynchronous storage backends, you must wait for the uninitialization to finish before re-initializing the storage system. |
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.
| For asynchronous storage backends, you must wait for the uninitialization to finish before re-initializing the storage system. | |
| For asynchronous storage backends, you must wait for the uninitialization to finish before reinitializing the storage system. |
f446ab9 to
bac73f5
Compare
doc/nrf-bm/libraries/bm_zms.rst
Outdated
| Clearing the storage system | ||
| =========================== | ||
|
|
||
| Call the :c:func:`bm_zms_clear` function to clear the storage. |
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.
Perhaps state explicitly here that it uinintializes the zms instance.
| Call the :c:func:`bm_zms_clear` function to clear the storage. | |
| Call the :c:func:`bm_zms_clear` function to clear the storage and uninitialize the ZMS instance. |
|
bac73f5 to
d0affad
Compare
The `bm_zms_clear` function executes write operations under the hood that can be asynchronous. The condition of termination for the operation is when the file system is set to uninitialized. Adds a check for this condition before terminating the sample. Signed-off-by: Mirko Covizzi <[email protected]>
Adds section that explains how to handle the storage system clear. Signed-off-by: Mirko Covizzi <[email protected]>
d0affad to
decc84c
Compare



The
bm_zms_clearfunction executes write operations under the hood that can be asynchronous.The condition of termination for the operation is when the file system is set to uninitialized.
Adds a check for this condition before terminating the sample.