Getting access to checksums.

K. Macy kmacy at freebsd.org
Thu Jun 9 21:31:47 UTC 2011


On Thu, Jun 9, 2011 at 9:15 PM, Dan Carroll <fbsd at dannysplace.net> wrote:
> I'm currently working on a system that monitors file changes.
> I'd like to calculate the checksums on each file both to see if a change has
> occured as well as looking for duplicate files.
>
> I'm not sure what algorithm I'll end up using but I was wondering if it was
> possible to get access to ZFS' checksumming?
> Does it happen on a file level or is it block level only?  And if it does,
> is there an easy way to obtain this information from the system?
>


The ZFS user tools effectively work by running ZFS in userland. One
could use the ZFS library to do what you're asking for. I doubt it
would be easy enough to be worth the effort, but if you're motivated
it might be worth looking in to.

-Kip


More information about the freebsd-fs mailing list