直接从文件系统获取文件校验和,而不是显式计算 [英] Getting a file checksum directly from the filesystem instead of calculating it explicitly

查看:200
本文介绍了直接从文件系统获取文件校验和,而不是显式计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我猜测一个典型的文件系统往往会保留它管理的每一个文件的校验和/ CRC /哈希,所以它可以检测到文件损坏。



这猜测是正确的吗?如果是,有没有办法访问它?



我主要对Windows和NTFS感兴趣,但对其他平台的评论也是受欢迎的...语言在这一点上是不重要的,但我想尽可能避免汇编。



谢谢。

解决方案

好的,看来我所要求的是不可能的。

顺便说一下,这里也讨论了这个问题:在Windows文件系统中,每个文件都有一个预先计算的哈希值?


I'm guessing that a typical filesystem tends to keep some kind of checksum/CRC/hash of every file it manages, so it can detect file corruption.

Is that guess correct? And if yes, is there a way to access it?

I'm primarily interested in Windows and NTFS, but comments on other platforms would be welcome as well... Language is unimportant at this point, but I'd like to avoid assembler if possible.

Thanks.

解决方案

OK, it appears that what I'm asking is impossible.

BTW, this was also discussed here: There is in Windows file systems a pre computed hash for each file?

这篇关于直接从文件系统获取文件校验和,而不是显式计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆