Lines Matching refs:clients

79 	char **clients;
213 * First count the total number of clients. This'll be a useful
218 rcm_log_message(RCM_TRACE2, gettext("MPXIO: found %d clients.\n"),
223 * along the way. Pass in the total number of clients (from above) to
273 char **clients = NULL;
304 rcm_log_message(RCM_TRACE2, "MPXIO: getting clients\n");
306 &clients) < 0) {
307 *errstr = strdup(gettext("Cannot lookup clients."));
311 if (clients) {
312 rv = rcm_get_info_list(hdl, clients, flags, infop);
313 free(clients);
356 char **clients = NULL;
363 if (get_affected_clients(hdl, rsrc, CMD_OFFLINE, flags, &clients) < 0) {
364 *errstr = strdup(gettext("Cannot lookup clients."));
369 if (clients) {
370 rv = rcm_request_offline_list(hdl, clients, flags, infop);
373 free(clients);
389 char **clients;
396 if (get_affected_clients(hdl, rsrc, CMD_ONLINE, flags, &clients) < 0) {
397 *errstr = strdup(gettext("Cannot lookup clients."));
402 if (clients) {
403 rv = rcm_notify_online_list(hdl, clients, flags, infop);
404 free(clients);
413 * If clients are affected, then they are probably offline and we need to
422 char **clients;
429 if (get_affected_clients(hdl, rsrc, CMD_REMOVE, flags, &clients) < 0) {
430 *errstr = strdup(gettext("Cannot lookup clients."));
435 if (clients) {
436 rv = rcm_notify_remove_list(hdl, clients, flags, infop);
437 free(clients);
473 char **clients = NULL;
487 * Merge in the clients. All clients are merged in for getinfo
489 * being transferred to the clients as a result of changing
494 if (merge_clients(&nclients, &clients, group) < 0) {
495 free_clients(nclients, clients);
502 *clientsp = clients;
528 * Returns: 1 if clients would be affected, 0 if not.
579 * previous array of disk clients. The result is to adjust the 'nclients'
608 clients_new[i] = group->clients[i - old_nclients];
621 * this function, the total count of MPxIO clients in the system can be found.
781 /* Skip non-clients. */
832 if ((group->clients[group->nclients] =
848 if ((group->clients = (char **)calloc(*nclients, sizeof (char *))) ==
856 if ((group->clients[0] = get_rsrcname(dinode)) == NULL) {
915 free_clients(group->nclients, group->clients);
921 * Free an array of clients.
924 free_clients(int nclients, char **clients)
928 if (clients != NULL) {
931 if (clients[i])
932 free(clients[i]);
934 free(clients);