bdev/compress: make lb_size optional in bdev_compress_create
Treat it as zero if the user doesn't provide it. This will make it consistent with other RPCs and the behavior of that command in scripts/rpc.py. Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: Ic5505f853bc203fb1144ba3f1f44c736563a3677 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13529 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
a6704e454c
commit
0e25e2a6e2
@ -130,7 +130,7 @@ free_rpc_construct_compress(struct rpc_construct_compress *r)
|
||||
static const struct spdk_json_object_decoder rpc_construct_compress_decoders[] = {
|
||||
{"base_bdev_name", offsetof(struct rpc_construct_compress, base_bdev_name), spdk_json_decode_string},
|
||||
{"pm_path", offsetof(struct rpc_construct_compress, pm_path), spdk_json_decode_string},
|
||||
{"lb_size", offsetof(struct rpc_construct_compress, lb_size), spdk_json_decode_uint32},
|
||||
{"lb_size", offsetof(struct rpc_construct_compress, lb_size), spdk_json_decode_uint32, true},
|
||||
};
|
||||
|
||||
/* Decode the parameters for this RPC method and properly construct the compress
|
||||
|
Loading…
Reference in New Issue
Block a user