On Sat, Oct 25, 2008 at 6:49 PM, Marcus Sundman <[EMAIL PROTECTED]> wrote:

> Richard Elling <[EMAIL PROTECTED]> wrote:
> > Marcus Sundman wrote:
> > > How can I verify the checksums for a specific file?
> >
> > ZFS doesn't checksum files.
>
> AFAIK ZFS checksums all data, including the contents of files.
>
> > So a file does not have a checksum to verify.
>
> I wrote "checksums" (plural) for a "file" (singular).
>

AH - Then you DO mean the ZFS built-in data check-summing - my mistake.  ZFS
checksums allocations (blocks), not files. The checksum for each block is
stored in the parent of that block.  These are not shown to you but you can
"scrub" the pool, which will see zfs run through all the allocations,
checking whether the checksums are valid.

This PDF document is quite old but explains it fairly well:
http://www.google.co.za/url?sa=t&source=web&ct=res&cd=1&url=http%3A%2F%2Fru.sun.com%2Ftechdays%2Fpresents%2FSolaris%2Fhow_zfs_works.pdf&ei=f3EDSbnjB5iQQbG2wIIC&usg=AFQjCNG8qtO3bFgmD11izooR7SVbiSOI2A&sig2=-EHfv5Puqz8dxkANISionQ

What is not expressly stated in the block is that the ZFS allocation
structure stores the posix layer and file data in the leaf nodes in the
tree.

Cheers,
  _hartz

-- 
Any sufficiently advanced technology is indistinguishable from magic.
   Arthur C. Clarke

My blog: http://initialprogramload.blogspot.com
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to