-
Notifications
You must be signed in to change notification settings - Fork 144
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
Add note on f3probe assumptions to readme #145
base: master
Are you sure you want to change the base?
Conversation
address issue AltraMayor#144
`sizeof()` returns the number of bytes, not bits, and since this is as an unsigned type and the value typically less than 10 the assertion currently does not fail but also fails to detect problems when `MAX_N_BLOCK_ORDER` is too big as the comparison is with the the very big number resulting from an unsigned overflow, typically 2^32-2.
Correct overflow protection
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.
Add note on f3probe assumptions to readme
README.rst
Outdated
f3probe assumes that higher bits of the drive block address are simply | ||
not connected in hardware. If you come across a fake drive that behaves | ||
differently, please open an issue reporting the details. | ||
|
||
|
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.
This language is going to confuse lots of users. Most users just want to know if they have a fake drive or not, and what to do next. Helping them to do that is the way we fight flash fraud. It is better to add a section for people interested in the algorithm of f3probe
and discuss technical aspects there.
Squash the next patch into this one since the next patch is just fixing this patch. You can use git rebase -i master
at your branch.
Here a first draft. I also included a few words on f3write/read as a section I did |
A few more lines to explain what |
I added verbose output in https://github.com/jowagner/f3/tree/verbose and I now doubt I understand correctly how
|
In order to avoid duplicate patches in this pull request, you need to On the question of what |
Thanks for the pointers, also in the related issue. I hope to find time soon to investigate a bit more so I can finalise the text. |
Add paragraph to readme explaining f3probe assumption and ask for reports on drives with different behaviour