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 <derek.su@suse.com>
  • Loading branch information
derekbit committed Feb 22, 2024
1 parent 0da7b0d commit c0cfb2f
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 c0cfb2f

Please sign in to comment.