@@ -60,10 +60,10 @@ static void json_update_attributes(nvme_ctrl_t c,
6060 JSON_UPDATE_BOOL_OPTION (cfg , key_str ,
6161 concat , val_obj );
6262 if (!strcmp ("persistent" , key_str ) &&
63- !nvme_ctrl_is_persistent (c ))
63+ !nvme_ctrl_get_persistent (c ))
6464 nvme_ctrl_set_persistent (c , true);
6565 if (!strcmp ("discovery" , key_str ) &&
66- !nvme_ctrl_is_discovery_ctrl (c ))
66+ !nvme_ctrl_get_discovery_ctrl (c ))
6767 nvme_ctrl_set_discovery_ctrl (c , true);
6868 if (!strcmp ("keyring" , key_str ))
6969 nvme_ctrl_set_keyring (c ,
@@ -342,10 +342,10 @@ static void json_update_port(struct json_object *ctrl_array, nvme_ctrl_t c)
342342 JSON_BOOL_OPTION (cfg , port_obj , hdr_digest );
343343 JSON_BOOL_OPTION (cfg , port_obj , data_digest );
344344 JSON_BOOL_OPTION (cfg , port_obj , concat );
345- if (nvme_ctrl_is_persistent (c ))
345+ if (nvme_ctrl_get_persistent (c ))
346346 json_object_object_add (port_obj , "persistent" ,
347347 json_object_new_boolean (true));
348- if (nvme_ctrl_is_discovery_ctrl (c ))
348+ if (nvme_ctrl_get_discovery_ctrl (c ))
349349 json_object_object_add (port_obj , "discovery" ,
350350 json_object_new_boolean (true));
351351
@@ -356,7 +356,7 @@ static void json_update_subsys(struct json_object *subsys_array,
356356 nvme_subsystem_t s )
357357{
358358 nvme_ctrl_t c ;
359- const char * subsysnqn = nvme_subsystem_get_nqn (s ), * app ;
359+ const char * subsysnqn = nvme_subsystem_get_subsysnqn (s ), * app ;
360360 struct json_object * subsys_obj = json_object_new_object ();
361361 struct json_object * port_array ;
362362
@@ -512,10 +512,10 @@ static void json_dump_ctrl(struct json_object *ctrl_array, nvme_ctrl_t c)
512512 json_object_new_string (value ));
513513 }
514514 JSON_BOOL_OPTION (cfg , ctrl_obj , concat );
515- if (nvme_ctrl_is_persistent (c ))
515+ if (nvme_ctrl_get_persistent (c ))
516516 json_object_object_add (ctrl_obj , "persistent" ,
517517 json_object_new_boolean (true));
518- if (nvme_ctrl_is_discovery_ctrl (c ))
518+ if (nvme_ctrl_get_discovery_ctrl (c ))
519519 json_object_object_add (ctrl_obj , "discovery" ,
520520 json_object_new_boolean (true));
521521 json_object_array_add (ctrl_array , ctrl_obj );
@@ -602,7 +602,7 @@ static void json_dump_subsys(struct json_object *subsys_array,
602602 json_object_object_add (subsys_obj , "name" ,
603603 json_object_new_string (nvme_subsystem_get_name (s )));
604604 json_object_object_add (subsys_obj , "nqn" ,
605- json_object_new_string (nvme_subsystem_get_nqn (s )));
605+ json_object_new_string (nvme_subsystem_get_subsysnqn (s )));
606606
607607 ns_array = json_object_new_array ();
608608 if (!json_dump_subsys_multipath (s , ns_array ))
0 commit comments