ICHKSUM(1)
β¨ NAME β¨
okay so bestie, welcome to ichksum(1) β that's ICHKSUM(1), User Commands, and it's an iRODS iCommand. The name is literally:
ichksum β an iRODS iCommand.
That's the whole vibe: checksum business, iRODS edition. π
πΈ SYNOPSIS πΈ
ichksum [-haMrvV] [-f|K|--verify] [-n replNum|-R resource] [--silent]
π DESCRIPTION π
The thing you're pointing it at is:
dataObj|collection ...
Checksum one or more data objects or collections. β¨
The checksum algorithm used by this function is determined by the client and server's configuration, but defaults to SHA256. Checksum values are only calculated on the part of a replica indicated by the size stored in the catalog, not necessarily the entirety of the file under management.
lowkey important, bestie: that "part of a replica indicated by the size stored in the catalog" detail is not a suggestion β it's the actual rule. π«Ά
There are two modes of operation:
- Lookup/Update (default): Computes and updates checksum information.
- Verification: Detects and reports issues related to checksum information.
π Lookup/Update mode π
In Lookup/Update mode, the following operations are performed:
- Compute a new checksum and updates the catalog.
- Reports if the replicas do NOT share identical checksums.
Lookup/Update mode will process the highest voted replica unless -a is present. If -f is not present and the replica already has a checksum, that checksum will be printed to the terminal. If a specific replica is targeted, step 2 is not performed.
Lookup/Update mode supports operations on replicas marked as good or stale.
π¦ Verification mode π¦
In Verification mode, the following operations are performed:
- Reports replicas with mismatched size information (physical vs catalog).
- Reports replicas with missing checksums. (Halts if missing checksums are found)
- Reports replicas with mismatched checksums (computed vs catalog).
- Reports if the replicas do NOT share identical checksums.
Verification mode operates on all replicas unless a specific replica is targeted. If a specific replica is targeted, step 4 is not performed.
Verification mode supports operations on replicas marked as good.
Operations that target multiple replicas will only affect replicas that are marked as good. This means intermediate, locked, and stale replicas will be ignored.
Operations that target a specific replica are allowed to operate on stale replicas unless stated otherwise.
π OPTIONS π
-fβ Computes and stores a checksum for one or more replicas. This option always results in a catalog update.-aβ Apply operation to all good replicas.-K,--verifyβ Verifies the state of the checksums for one or more replicas.--no-computeβ When used with-K, no checksums are computed. This option causes step 3 of-Kto be skipped. This option is provided as a way to avoid long running checksum computations when a size check is adequate.-Mβ Run the command as an administrator.-nREPLICA_NUMBER β The replica number of the replica to checksum or verify.-RRESOURCE_NAME β The root resource that contains the replica to checksum or verify.-rβ Checksum data objects recursively.--silentβ Suppresses output of checksums and output related to-r.-vβ Verbose.-Vβ Very verbose.-hβ Prints this message.
And the help tail also shows iRODS Version 5.0.2 and ichksum, so there's that little detail too. π
π cute sign-off bestie: this page comes from ichksum iRODS-5.0.2, dated January 1980 β mwah, periodt. π
π¦ where this page comes from
- nixos 26.05: irods-icommands 5.0.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms