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 <blaine.gardner@ibm.com>
This commit is contained in:
Blaine Gardner committed 2025-04-10 12:28:23 -06:00
1 parent c7b0b32d72
commit 5b27189ac4
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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"`
}
+1 -1
View File
@@ -43,7 +43,7 @@ var statusFakeRaw = []byte(`{
"rank": 0,
"name": "myfs-b",
"status": "up:active",
"gid": 14716
"gid": 13999249051405999408
}
],
"up:standby": 1