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 0d39849
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spdk/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,17 @@ 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 {
// 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"`
Name string `json:"name"`
UUID string `json:"uuid"`
}

// 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 0d39849

Please sign in to comment.