Lines Matching defs:tohost
137 static int autosync_is_on(char *tohost, char *tofile);
218 char *tohost, *tofile;
288 tohost = urdc->secondary.intf;
306 if (strcmp(tmptohost, tohost) != 0)
333 tohost, tofile, tobitmap,
501 ctag_check(char *fromhost, char *fromfile, char *frombitmap, char *tohost,
520 hp = gethost_byname(tohost);
531 fromhost, fromfile, tohost, tofile);
1710 char tohost[MAX_RDC_HOST_SIZE];
2284 * tohost:tofile
2288 * fromhost fromfile frombitmap tohost tofile tobitmap ip sync
2317 /* Now look up tohost:tofile via libcfg */
2343 (void) cfg_get_cstring(cfg, key, tohost,
2344 sizeof (tohost));
2345 if (strncmp(tohost, tohost_arg, NSC_MAXPATH))
2413 "nor async"), tohost, tofile);
2429 (void) strncpy(tohost, argv[optind+3],
2436 (tohost[MAX_RDC_HOST_SIZE - 1] != '\0')) {
2444 (inet_addr(tohost) != (in_addr_t)(-1))) {
2510 find_setnumber_in_libcfg(cfg, NULL, tohost,
2517 tohost, tofile);
2528 tohost, tofile);
2612 if (gethost_netaddrs(fromhost, tohost,
2617 fromhost, tohost);
2628 if (!self_check(fromhost) && !self_check(tohost)) {
2632 "%s or host %s"), fromhost, tohost);
2664 check_rdcbitmap(flag, tohost, tobitmap);
2684 tohost, tofile, tobitmap, ctag, diskqueue) < 0)
2717 (void) strncpy(tohost, pair_list[pairs].thost,
2754 group_arg, ctag_arg, tohost, tofile, cfg);
2766 ret = rdc_bitmapset(tohost, tofile, bitfile, oflag,
2781 (void) strncpy(parms.rdc_set->secondary.intf, tohost,
2802 check_rdcbitmap(flag, tohost, tobitmap);
2833 check_rdcbitmap(flag, tohost, tobitmap);
2896 fromhost, fromfile, frombitmap, tohost, tofile,
2907 ctag : NULL, tohost, tofile);
2930 } else if (self_check(tohost)) {
2932 key, "lghn", tohost) < 0) {
2967 if (strcmp(buf, tohost) != 0)
3036 tohost, tofile);
3040 frombitmap, tohost, tofile, tobitmap, ctag,
3075 if (strcmp(buf, tohost) != 0)
3131 tohost, tofile, tobitmap,
3189 if (autosync_is_on(tohost, tofile) ==
3192 tohost, tofile);
3197 frombitmap, tohost, tofile,
3211 frombitmap, tohost, tofile, tobitmap,
3227 tohost, tofile, tobitmap, flag, iflag, directfile,
3257 (void) strncpy(fromhost, tohost,
3264 (void) strncpy(tohost, tmphost,
3279 tohost, tofile, tobitmap,
3450 * tohost:tofile.
3458 * tohost - secondary host
3466 set_autosync(int autosync_val, char *tohost, char *tofile, char *ctag)
3501 tohost, tofile)) < 0) {
3504 "in config"), tohost, tofile);
3529 "for Remote Mirror set %s:%s"), tohost, tofile);
3554 "in config for Remote Mirror set %s:%s"), tohost,
3566 "in config for Remote Mirror set %s:%s"), tohost,
3703 * Check to see if autosync is on for set specified by tohost:tofile.
3709 * tohost - secondary host
3718 autosync_is_on(char *tohost, char *tofile)
3734 if ((setnumber = find_setnumber_in_libcfg(cfg, NULL, tohost, tofile)) <
3738 "config"), tohost, tofile);
3795 char *tohost, char *tofile, char *tobitmap,
3818 hp = gethost_byname(tohost);
3823 fromhost, tohost);
3833 (void) strncpy(parms.rdc_set->secondary.intf, tohost,
3942 fromhost, tohost);
3952 fromhost, fromfile, tohost, tofile);
3961 (void) strncpy(parms.rdc_set->secondary.intf, tohost,
3971 if (self_check(tohost) &&
3995 "for %s:%s"), tohost, tofile);
3998 tohost, tofile)) < 0) {
4000 " for %s:%s"), tohost, tofile);
4009 "id for %s:%s: %s"), tohost, tofile,
4013 parms.rdc_set->setid = get_cfg_setid(cfg, ctag, tohost, tofile);
4016 "for %s:%s"), tohost, tofile);
4080 tohost, tofile);
4086 tohost, tofile, tobitmap);
4091 (autosync_is_on(tohost, tofile) == AUTOSYNC_ON)) {
4096 (autosync_is_on(tohost, tofile) == AUTOSYNC_ON)) {
4116 set_autosync(autosync, tohost, tofile, ctag);
4127 tohost, tofile);
4155 "autosync for Remote Mirror set %s:%s"), tohost,
4158 "Remote Mirror set %s:%s"), tohost, tofile);
4171 frombitmap, tohost, tofile, tobitmap);
4178 tohost, tofile, tobitmap,
4189 tohost, tofile, tobitmap);
4236 if (strncmp(shostbuf, tohost, sizeof (tohost)))
4388 tohost, tofile, tobitmap,
4401 frombitmap, tohost, tofile, tobitmap);
4415 tohost, tofile, tobitmap,
4427 frombitmap, tohost, tofile, tobitmap);
4435 tohost, tofile, tobitmap);
4437 spcslog_tunable(tohost, tofile);
4480 vol1, tohost, tofile);
4490 vol1, tohost, tofile);
4500 frombitmap, tohost, tofile,
4509 tohost, tofile, tobitmap);
4526 vol1, tohost, tofile);
4536 vol2, tohost, tofile);
4546 frombitmap, tohost, tofile,
4555 tohost, tofile, tobitmap);
4573 diskqueue, tohost, tofile);
4594 diskqueue, tohost, tofile);
4604 frombitmap, tohost, tofile,
4613 tohost, tofile, tobitmap);
4694 frombitmap, tohost, tofile);
4698 frombitmap, tohost, tofile);
4707 frombitmap, tohost, tofile,
4716 tohost, tofile, tobitmap);
4742 diskqueue, tohost, tofile);
4746 diskqueue, tohost, tofile);
4755 frombitmap, tohost, tofile,
4764 tohost, tofile, tobitmap);
4791 tobitmap, tohost, tofile);
4795 tobitmap, tohost, tofile);
4804 frombitmap, tohost, tofile,
4812 tohost, tofile, tobitmap);
4836 * fromhost fromfile frombitmap tohost tofile tobitmap
4840 * local to the tohost subsystem, and type is 1 if the device
4863 char tohost[MAX_RDC_HOST_SIZE];
4928 (void) strncpy(tohost, tmp, (MAX_RDC_HOST_SIZE - 1));
4929 tohost[(MAX_RDC_HOST_SIZE - 1)] = '\0';
5020 (void) strncpy(pair_list[i].thost, tohost, MAX_RDC_HOST_SIZE);
5027 if (gethost_netaddrs(fromhost, tohost,
5032 "addresses for hosts %s, %s"), fromhost, tohost);
5043 tohost, tofile, tobitmap, pair_list[i].ctag,
5607 rdc_bitmapset(char *tohost, char *tofile, char *bitmap, int op,
5661 (void) strncpy(bmop.sechost, tohost, MAX_RDC_HOST_SIZE);
5669 "%s:%s"), tohost, tofile);