Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jun 2011 23:03:45 +0200
From:      "K. Macy" <kmacy@freebsd.org>
To:        fbsd@dannysplace.net
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Getting access to checksums.
Message-ID:  <BANLkTinW9X_W7%2BGuQ=KYRYOv9wLpvdb%2Beg@mail.gmail.com>
In-Reply-To: <4DF11BB8.5030805@dannysplace.net>
References:  <4DF11BB8.5030805@dannysplace.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 9, 2011 at 9:15 PM, Dan Carroll <fbsd@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 w=
as
> possible to get access to ZFS' checksumming?
> Does it happen on a file level or is it block level only? =A0And if it do=
es,
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTinW9X_W7%2BGuQ=KYRYOv9wLpvdb%2Beg>