Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

info: Change the standard/reduced parity data structure to be per pool #214

Merged
merged 1 commit into from
Aug 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions info-commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,18 @@ type BackendInfo struct {
OfflineDisks BackendDisks // Offline disks during server startup.

// Following fields are only meaningful if BackendType is Erasure.
StandardSCData []int // Data disks for currently configured Standard storage class.
StandardSCParity int // Parity disks for currently configured Standard storage class.
RRSCData []int // Data disks for currently configured Reduced Redundancy storage class.
RRSCParity int // Parity disks for currently configured Reduced Redundancy storage class.
StandardSCData []int // Data disks for currently configured Standard storage class.
StandardSCParities []int // Parity disks per pool for currently configured Standard storage class
RRSCData []int // Data disks for currently configured Reduced Redundancy storage class.
RRSCParities []int // Parity disks per pool for currently configured Reduced Redundancy storage class.

// Adds number of erasure sets and drives per set.
TotalSets []int // Each index value corresponds to per pool
DrivesPerSet []int // Each index value corresponds to per pool

// Deprecated Aug 2023
StandardSCParity int // Parity disks for currently configured Standard storage class.
RRSCParity int // Parity disks for currently configured Reduced Redundancy storage class.
}

// BackendDisks - represents the map of endpoint-disks.
Expand Down
Loading