From 5b27189ac44200320144cc7193abaceddb645a34 Mon Sep 17 00:00:00 2001 From: Blaine Gardner Date: Thu, 10 Apr 2025 12:13:11 -0600 Subject: [PATCH] core: update cephstatus fsmap gid type to uint64 Ceph uses uint64 (unsigned long) type for CephFS GID. Rook was using int, which was causing failures when the GID overflowed Rook's type. Update Rook's type to match Ceph's. Signed-off-by: Blaine Gardner --- pkg/daemon/ceph/client/status.go | 2 +- pkg/daemon/ceph/client/status_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/daemon/ceph/client/status.go b/pkg/daemon/ceph/client/status.go index 327ede035..71a4b51dd 100644 --- a/pkg/daemon/ceph/client/status.go +++ b/pkg/daemon/ceph/client/status.go @@ -149,7 +149,7 @@ type Fsmap struct { Rank int `json:"rank"` Name string `json:"name"` Status string `json:"status"` - Gid int `json:"gid"` + Gid uint64 `json:"gid"` } `json:"by_rank"` UpStandby int `json:"up:standby"` } diff --git a/pkg/daemon/ceph/client/status_test.go b/pkg/daemon/ceph/client/status_test.go index a3b791a41..a191fe39f 100644 --- a/pkg/daemon/ceph/client/status_test.go +++ b/pkg/daemon/ceph/client/status_test.go @@ -43,7 +43,7 @@ var statusFakeRaw = []byte(`{ "rank": 0, "name": "myfs-b", "status": "up:active", - "gid": 14716 + "gid": 13999249051405999408 } ], "up:standby": 1