NC | generate_entropy
Using lsblk
Command When No Candidates Were Found
#8777
+84
−19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explain the changes
lsblk
command and rerun the the same steps as before.if (entropy_avail < 512)
toif (entropy_avail >= 512) return;
to avoid additional nested layer.Issues: Fixed #8598
/dev/nvme0n1
).Testing Instructions:
Manual Test
Add the
while (loop_cond()) {
to comment to run it once.(first run) Add the script in the path:
/usr/local/noobaa-core/
and run it with:node <path to the script>
(secodn run) Change the condition (first appearance)
if (disk_details.disk_size) {
toif (false) {
so we will get to the "else" clause we created, and rerun the script:node <path to the script>
Doc added/updated
Tests added