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:
2 files changed
+2
-2
No files matched your search
@@ -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"`
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ var statusFakeRaw = []byte(`{
|
||||
"rank": 0,
|
||||
"name": "myfs-b",
|
||||
"status": "up:active",
|
||||
"gid": 14716
|
||||
"gid": 13999249051405999408
|
||||
}
|
||||
],
|
||||
"up:standby": 1
|
||||
|
||||
Reference in new issue
Block a user