diff --git a/.golangci.yml b/.golangci.yml index 1c54c0b6..c8e4d469 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -23,7 +23,7 @@ linters: # Known findings as of 2026-10-24 in code other open PRs are changing; delete each rule once fixed. rules: # errcheck is enforced only in packages already cleaned up; widen this as others are. - - path-except: ^(internal/(journal|bitmap|refcount|trim|superblock|storage|node|metrics|lock|inode|extent|snapshot)|cmd/crctest)/ + - path-except: ^internal/(journal|bitmap|refcount|trim|superblock|storage|node|metrics|lock|inode|extent|snapshot)/ linters: [errcheck] - path: ^internal/goclusterfs/fs\.go$ linters: [unused] diff --git a/CHANGELOG.md b/CHANGELOG.md index 4727d499..d14c0dbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,6 +64,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ### Removed +- `cmd/crctest`, a development tool that printed two CRC32C values. `internal/storage`'s `TestCRC32C` already checks both, and releases never shipped it. - The legacy single-block prototype in the repository root (`main.go`). - The journal's `FullThreshold` setting, which nothing read. A checkpoint still runs every 5 seconds and when a transaction does not fit. diff --git a/CLAUDE.md b/CLAUDE.md index 9bcab9cd..ebca094c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -35,7 +35,6 @@ fusermount3 -u mnt # or Ctrl+C the mo |------|--------------| | `cmd/mount` | `goclusterfs-mount`: fixes the on-disk layout, runs journal recovery, wires all managers, mounts with go-fuse | | `cmd/fsck` | `goclusterfs-fsck`: 8-phase checker with `-repair` and `-force` modes | -| `cmd/crctest` | Prints CRC32C test values | | `cmd/gfsctl` | `gfsctl`: read-only CLI for the HTTP API (status, health, stats, metrics) | | `internal/goclusterfs` | FUSE nodes (`FS` root, `Dir`, `File`) and every VFS operation | | `internal/storage` | O_DIRECT device, 4 KB aligned buffers, CRC32C | diff --git a/cmd/crctest/main.go b/cmd/crctest/main.go deleted file mode 100644 index cc86c013..00000000 --- a/cmd/crctest/main.go +++ /dev/null @@ -1,12 +0,0 @@ -package main - -import ( - "fmt" - "hash/crc32" -) - -func main() { - table := crc32.MakeTable(crc32.Castagnoli) - fmt.Printf("hello: 0x%08x\n", crc32.Checksum([]byte("hello"), table)) - fmt.Printf("single 0x00: 0x%08x\n", crc32.Checksum([]byte{0x00}, table)) -}