Lines Matching defs:clear_method
36 char *clear_method;
76 free(req->clear_method);
83 {"clear_method", offsetof(struct rpc_bdev_lvol_create_lvstore, clear_method), spdk_json_decode_string, true},
114 enum lvs_clear_method clear_method;
125 if (req.clear_method != NULL) {
126 if (!strcasecmp(req.clear_method, "none")) {
127 clear_method = LVS_CLEAR_WITH_NONE;
128 } else if (!strcasecmp(req.clear_method, "unmap")) {
129 clear_method = LVS_CLEAR_WITH_UNMAP;
130 } else if (!strcasecmp(req.clear_method, "write_zeroes")) {
131 clear_method = LVS_CLEAR_WITH_WRITE_ZEROES;
133 spdk_jsonrpc_send_error_response(request, -EINVAL, "Invalid clear_method parameter");
137 clear_method = LVS_CLEAR_WITH_UNMAP;
140 rc = vbdev_lvs_create_ext(req.bdev_name, req.lvs_name, req.cluster_sz, clear_method,
290 char *clear_method;
299 free(req->clear_method);
308 {"clear_method", offsetof(struct rpc_bdev_lvol_create, clear_method), spdk_json_decode_string, true},
336 enum lvol_clear_method clear_method;
357 if (req.clear_method != NULL) {
358 if (!strcasecmp(req.clear_method, "none")) {
359 clear_method = LVOL_CLEAR_WITH_NONE;
360 } else if (!strcasecmp(req.clear_method, "unmap")) {
361 clear_method = LVOL_CLEAR_WITH_UNMAP;
362 } else if (!strcasecmp(req.clear_method, "write_zeroes")) {
363 clear_method = LVOL_CLEAR_WITH_WRITE_ZEROES;
369 clear_method = LVOL_CLEAR_WITH_DEFAULT;
373 req.thin_provision, clear_method, rpc_bdev_lvol_create_cb, request);