Skip to content

Commit c0cfb2f

Browse files
committed
Omit BlockSize option of BdevAioCreate if it is zero
Longhorn 7672 Signed-off-by: Derek Su <[email protected]>
1 parent 0da7b0d commit c0cfb2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/spdk/types/aio.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type BdevAioDriverSpecificInfo struct {
1515
type BdevAioCreateRequest struct {
1616
Name string `json:"name"`
1717
Filename string `json:"filename"`
18-
BlockSize uint64 `json:"block_size"`
18+
BlockSize uint64 `json:"block_size,omitzero"`
1919
}
2020

2121
type BdevAioDeleteRequest struct {

0 commit comments

Comments
 (0)