docs: add package and doc comments for exported identifiers

Document every exported type, function and method in the migration,
storage and cephfsnative packages and add package comments for
migration and the cephmig command, following the commentary rules of
Effective Go. Comments on unexported helpers now start with the name
they describe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-12-03 18:07:48 +01:00
1 parent 7413b9a43a
commit c2ef7a6c3b
12 files changed
+150 -7

No files matched your search

+2 -1
View File
@@ -84,7 +84,8 @@ func inodeIdentity(info os.FileInfo) ([16]byte, uint64, error) {
return key, uint64(st.Nlink), nil
}
// In repair mode remove only excess target hardlinks. Missing paths are then
// hardlinkTopology compares the hard-link groups of src and dst.
// In repair mode it removes only excess target hardlinks. Missing paths are then
// recreated by the copy backend. In verification mode check both directions:
// source groups must stay joined, and unrelated source files must stay separate.
func hardlinkTopology(ctx context.Context, src, dst, scratchParent string, repair bool) (result error) {