Repository navigation
Conversation
…ls 1 and 2 docs/porting.md sends owners of a new model to "level 3 of the form" to confirm the bay map by moving a disk, but level 3 only covered the expansion unit's identity. Level 3 now starts with the NAS bays: the same disk -> ATA port loop as collect-report.sh, run again after moving one disk to an empty bay. Level 1 says it can stay empty for a host-only report with the collector file attached (rylos#16 left it empty for that reason), and level 2 says a new model starts with the DSM log.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Follow-up to #16 and 869ebd8: the collector now has everything a new model needs, so this only touches the form.
What changes
collect-report.sh, run once more after moving one disk to an empty bay, with an example line from the DS2415+ and how to read it. The expansion-unit part follows unchanged.Testing
python3 -c 'import yaml; yaml.safe_load(open(...))').tools/collect-report.shat 869ebd8, so form and collector print the same lines.ata7.00: ATA-8: ST1000DM003-1CH162,sd 6:0:0:0: [sda]), with the disk in bay 1, checked at the unit. The model is shown cut to 16 characters, as/sys/block/*/device/modelstores it.Not in this PR, but found on the way: on Avoton units
/proc/sys/kernel/syno_hw_versioncarries a suffix:DS415+-jin #16, andDS2415+-jon our DS2415+ under DSM 7.1.1. The kernel command line sayssyno_hw_version=DS415+/DS2415+.hw_version()insynodeb-setup.shreads the proc file first, so a futureds415plus.confwithMODEL=DS415+would not match, and withMODEL=DS415+-jthe check againstSynoBootLoader.conf(grep -q "syno_hw_version=$MODEL") would fail instead. Reading the command line first, or cutting at the first-, would cover both. I left it to you, since it's your code.Offered as a suggestion; change or drop it as fits.