Skip to content

Commit

Permalink
fix: fix typos and add md size to BdevMallocCreate
Browse files Browse the repository at this point in the history
Signed-off-by: Moshe Shahar <[email protected]>
  • Loading branch information
moshe-shahar committed Apr 14, 2024
1 parent dff04ee commit 6aba737
Showing 1 changed file with 10 additions and 8 deletions.
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

0 comments on commit 6aba737

Please sign in to comment.