Skip to content

Commit

Permalink
Omit BlockSize option of BdevAioCreate if it is zero
Browse files Browse the repository at this point in the history
Longhorn 6762

Signed-off-by: Derek Su <[email protected]>
  • Loading branch information
derekbit committed Feb 16, 2024
1 parent ead1c2b commit 477aa8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/spdk/types/aio.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type BdevAioDriverSpecificInfo struct {
type BdevAioCreateRequest struct {
Name string `json:"name"`
Filename string `json:"filename"`
BlockSize uint64 `json:"block_size"`
BlockSize uint64 `json:"block_size,omitzero"`
}

type BdevAioDeleteRequest struct {
Expand Down

0 comments on commit 477aa8b

Please sign in to comment.