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 7672

Signed-off-by: Derek Su <[email protected]>
  • Loading branch information
derekbit committed Feb 22, 2024
1 parent cf29ac4 commit dfc7a74
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 dfc7a74

Please sign in to comment.