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

fix: fix typos and add md size to BdevMallocCreate #75

Merged
merged 1 commit into from
Apr 15, 2024
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
18 changes: 10 additions & 8 deletions spdk/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,18 @@ type BdevAioDeleteParams struct {
// BdevAioDeleteResult is the result of deleting an AIO Block Device
type BdevAioDeleteResult bool

// BdevMalloCreateParams holds the parameters required to create a Malloc Block Device
type BdevMalloCreateParams struct {
NumBlocks int `json:"num_blocks"`
BlockSize int `json:"block_size"`
Name string `json:"name"`
UUID string `json:"uuid"`
// BdevMallocCreateParams holds the parameters required to create a Malloc Block Device
type BdevMallocCreateParams struct {
NumBlocks int `json:"num_blocks"`
BlockSize int `json:"block_size"`
MdSize int `json:"md_size,omitempty"`
MdInterleave bool `json:"md_interleave,omitempty"`
Name string `json:"name"`
UUID string `json:"uuid,omitempty"`
}

// BdevAMalloCreateResult is the result of creating a Malloc Block Device
type BdevAMalloCreateResult string
// BdevMallocCreateResult is the result of creating a Malloc Block Device
type BdevMallocCreateResult string

// BdevMallocDeleteParams holds the parameters required to delete a Malloc Block Device
type BdevMallocDeleteParams struct {
Expand Down
Loading