| 103 | | } |
| | 116 | } |
| | 117 | |
| | 118 | static PINT_sm_action mgmt_migrate_setup_msgpair( |
| | 119 | struct PINT_smcb *smcb, job_status_s js_p) |
| | 120 | { |
| | 121 | struct PINT_client_sm *sm_p = PINT_sm_frame(smbc, PINT_FRAME_CURRET); |
| | 122 | int ret = -PVFS_EINVAL; |
| | 123 | PINT_sm_msgpair_state *msg_p = NULL; |
| | 124 | |
| | 125 | js_p->error_code = 0; |
| | 126 | |
| | 127 | PINT_msgpair_init(&sm_p->msgarray_op); |
| | 128 | msg_p = &sm_p->msgarray_op.msgpair; |
| | 129 | |
| | 130 | PINT_SERVREQ_MGMT_MIGRATE_FILL( //need to do this right here!!!!!!!!! |
| | 131 | msg_p->req, |
| | 132 | *sm_p->cred_p, |
| | 133 | sm_p->parent_ref.fs_id, |
| | 134 | sm_p->parent_ref.handle, |
| | 135 | sm_p->hints); |
| | 136 | |
| | 137 | /*stuff here as well */ |
| | 138 | |
| | 139 | |
| | 140 | |
| | 141 | ret = PINT_cached_config_map_to_server( |
| | 142 | &msg_p->svr_addr, msg_p->handle, msg_p->fs_id); |
| | 143 | |
| | 144 | if(ret) |
| | 145 | { |
| | 146 | gossip_err("Failed to map to server address\n"); |
| | 147 | js_p->error_code = ret; |
| | 148 | } |
| | 149 | |
| | 150 | PINT_sm_push_frame(smcb, 0, &sm_p->msgarray_op); |
| | 151 | |
| | 152 | return SM_ACTION_COMPLETE; |
| | 153 | } |
| | 154 | |
| | 155 | |
| | 156 | |