Update block validation script to use reflink#6999
Update block validation script to use reflink#6999wileyj merged 15 commits intostacks-network:developfrom
Conversation
- if slice dir or supplied local chainstate is mounted on an xfs partition with reflink enabled, use it to reduce storage required (cp_arg) - removed html output, only create the txt file recording the results of all validation processes - cleanup and comments
|
One thing to note, i have not run shellcheck on this - if you do, there are likely several (many) things to fix but i felt it was better to get this change merged and update later since it's only a helper/testing script. |
federico-stacks
left a comment
There was a problem hiding this comment.
There is an issue with check_reflink that need to be addressed.
I also added a bunch of nits while looking at the script. Feel free to address them or keep them for later as you mentioned here: #6999 (comment)
federico-stacks
left a comment
There was a problem hiding this comment.
check_reflink logic should work properly now. Added a couple of nits coming from the fixes
Co-authored-by: Cyle Witruk <236413682+cylewitruk-stacks@users.noreply.github.com>
Co-authored-by: Cyle Witruk <236413682+cylewitruk-stacks@users.noreply.github.com>
|
@cylewitruk-stacks mentioned an alternate way to check/use reflink which would apply to other filesytem types vs the xfs only option in this PR. will try and refactor slightly to account for non-xfs but reflink enabled filesystems (currently i'm checking specifically for xfs via the |
Refactored - seems to work well! |
Pull Request Test Coverage Report for Build 23864564498Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
jcnelson
left a comment
There was a problem hiding this comment.
If it works, then it works. I don't think this is in CI yet, but have you run shellcheck on the new script? I don't think I saw any footguns, but shellcheck can find them better than I can ;)
it wasn't done on this update, only the original script. |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Update block validation script to use less disk
The diff is larger than the change suggests from the comment/formatting cleanup, as well as removing the html output which isn't particularly useful for this script in this repo (better to handle that, if desired, in a wrapper script or separate process).
The main changes here are the addition of checking for a reflink enabled disk, and setting a specific
cparg if it's available for the filesystem where the chainstate, or (in the case of downloading an archive) where the slice data is.this allows for multiple copies of the chainstate with no addtional required storage (ex: 12 copies of the chainstate uses ~1.1TB, whereas in the past it would be close to 6TB).
Previous functionality persists, so if you run this on an ext4 etc partition, it will execute as it has in the past.
cc @cylewitruk