Skip to content

Add CRC32C (Castagnoli) checksum via XrdOucCRC::Calc32C#66

Open
jthiltges wants to merge 6 commits into
opensciencegrid:masterfrom
jthiltges:pr/pr63-ouccrc
Open

Add CRC32C (Castagnoli) checksum via XrdOucCRC::Calc32C#66
jthiltges wants to merge 6 commits into
opensciencegrid:masterfrom
jthiltges:pr/pr63-ouccrc

Conversation

@jthiltges
Copy link
Copy Markdown
Contributor

Starting from #63, switching to XrdOucCRC::Calc32C for checksum calculation.

Copilot AI and others added 6 commits February 14, 2026 16:17
Co-authored-by: djw8605 <79268+djw8605@users.noreply.github.com>
Co-authored-by: djw8605 <79268+djw8605@users.noreply.github.com>
Co-authored-by: djw8605 <79268+djw8605@users.noreply.github.com>
Co-authored-by: djw8605 <79268+djw8605@users.noreply.github.com>
@djw8605 djw8605 marked this pull request as ready for review May 16, 2026 01:10
@djw8605 djw8605 requested a review from Copilot May 16, 2026 01:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds CRC32C checksum support using XRootD’s XrdOucCRC::Calc32C, integrating it into checksum calculation, storage, and configuration parsing.

Changes:

  • Adds CRC32C as a checksum type and stores CRC32C state in ChecksumState.
  • Calculates and returns CRC32C values alongside existing checksum algorithms.
  • Allows crc32c in xrootd.chksum configuration.
  • Adds build/ to .gitignore.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/XrdChecksumCalc.cc Adds CRC32C state initialization, update, and hex output.
src/XrdChecksum.hh Adds CRC32C enum value and state field.
src/XrdChecksum.cc Adds CRC32C persistence and request handling.
src/MultiuserFileSystem.cc Parses crc32c from checksum configuration.
.gitignore Ignores local build directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/XrdChecksum.cc
Comment on lines +79 to +81
else if (!strncasecmp(Cks.Name, "crc32c", Cks.NameSize))
{
return_digest = ChecksumManager::CRC32C;
@djw8605
Copy link
Copy Markdown
Member

djw8605 commented May 16, 2026

@copilot apply changes based on the comments in this thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants