Skip to content
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

[feature request] store checksum for files #19

Closed
benpicco opened this issue Jun 11, 2015 · 2 comments
Closed

[feature request] store checksum for files #19

benpicco opened this issue Jun 11, 2015 · 2 comments

Comments

@benpicco
Copy link
Contributor

Hi,
Have you thought about storing a checksum for files somewhere to make it possible to detect corruption?
I'm thinking about changing my file format for firmware binaries to include a checksum, but I'm wondering whether it wouldn't be better to do at file system level (mostly because my firmware files are currently just a ROM dump and I like to keep things simple 😉)

@benpicco benpicco changed the title store checksum for files [feature request] store checksum for files Jun 12, 2015
@vladant
Copy link

vladant commented Jun 17, 2015

If you want a checksum then store it outside of file-system, either in the file or somewhere else.

@pellepl
Copy link
Owner

pellepl commented Jun 22, 2015

I agree. Adding crc as a fs feature is very specific, and would also force each write to reread the whole file each time to be robust. Also, one crc (e.g. 16bit ccitt) might not suit some other, so I feel it best leaving this to the user.

@pellepl pellepl closed this as completed Jun 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants