diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-15 06:26:30 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-15 20:01:36 +0000 |
| commit | eb139b32ef752058c28da60657e32ebc6ea963c1 (patch) | |
| tree | 665abfaa3ab4934d308efeef860ee3d1e7aac759 /config/dependencies | |
| parent | df741bcd3863eb89a2e2491c24ae7d4919e6e6e8 (diff) | |
util/nvmutil: double-verify r/w using tmp files
we now read twice, verify the two, to make sure
one read isn't faulty
we operate on a tmp file, then rename back. this
reduces the risk of power cuts corrupting data
we properly verify the contents that we wrote
back
inspired largely by flashprog. i wanted to have
an insanely over-engineered and extremely safe
tool that edits intel gbe nvm files
and now i have one. the only one in existence.
i'm basically writing my own libc code at this
point, to be honest. i'll probably start puttting
these functions in libraries
e.g. that tmpfile generator
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/dependencies')
0 files changed, 0 insertions, 0 deletions
