[Btrfs-devel] checksum errors

Chris Mason chris.mason at oracle.com
Mon Jun 25 10:02:26 PDT 2007


On Mon, Jun 25, 2007 at 05:40:56PM +0300, Aliaksei Sheshka wrote:
> В Пнд, 25/06/2007 в 16:13 +0200, Frank Groeneveld пишет:
> > I'm interested in implementing the checksum calculation in mkfs,
> 
> Why it's needed in mkfs?

mkfs.c won't need any changes, but the checksums do need to be calculated
for blocks modified by mkfs (see earlier in this thread for details).

> 
> > however, I have problems using the crc32c function. In what library is
> > it defined?
> 
> I think crc32c defined somethere in the kernel and doesn't accessible
> from userspace. No ?

Well, crc32c is a fairly standard thing, but I would just snag the
sources from the kernel. (lib/libcrc32c.c)

-chris




More information about the Btrfs-devel mailing list