Lines Matching defs:group
113 char group[NSC_MAXPATH]; /* Group name */
227 char *group = pair.group;
323 strncmp(group_arg, group, NSC_MAXPATH) != 0)
335 if (strlen(group) != 0)
336 (void) printf(" g %s", group);
374 (void) printf(gettext(", group: %s"), urdc->group_name);
411 (void) strcpy(pair_list[i].group, "");
424 (void) strncpy(pair_list[i].group, args[j + 1],
460 pair->tbitmap, pair->directfile, sync, pair->group,
469 if (strcmp(pair->group, place_holder) == 0)
470 (void) strcpy(pair->group, "");
537 * If implicit disk group name and no ctag specified by user,
539 * If implicit disk group name, it must match any supplied ctag.
560 "match disk group name \"%s\" of volume %s"), ctag,
570 " of a disk group,\nplease specify resource ctag\n"),
579 "volume \"%s\" is part of a disk group\n"), localfile);
591 * Assure that if the primary has a device group, so must the bitmap
595 rdc_warn(NULL, gettext("bitmap %s is not in disk group \"%s\""),
607 "match disk group name \"%s\" of bitmap %s"), ctag,
625 * Assure that if the primary has a device group, so must
631 "group \"%s\""), diskq,
644 "match disk group name \"%s\" of disk queue %s"),
663 * DISK_REWRITEG entire group needs to take new value of disk_queue
664 * DISKQ_OKAY newq contains a value that matches the group.
672 char *group = pair.group;
706 if (strncmp(group, newgroup, NSC_MAXPATH) != 0) {
743 if (strcmp(pair_list[i].group, pair_list[newpair].group) != 0)
747 return (DISKQ_OKAY); /* matches existing group */
748 if ((pair_list[newpair].group[0] != '\0') &&
759 pair_list[newpair].group[0] != '\0') {
762 return (DISKQ_OKAY); /* changed to existing group que */
766 if ((pair_list[j].group[0] != '\0') &&
767 (strncmp(pair_list[j].group,
768 pair_list[newpair].group,
783 pair_list[newpair].group);
786 if (strcmp(pair_list[i].group,
787 pair_list[newpair].group) != 0)
1030 "not in a device group"),
1131 (void) strtok(NULL, " "); /* group */
1254 if (pair->group && pair->group[0]) {
1255 if (strcmp(pair->group, tmpair.group) != 0)
1256 continue; /* not the group we want */
1258 } else { /* no group specified */
1322 (void) strcpy(group_arg, pair.group);
1328 if (strcmp(group_arg, pair.group) == 0) {
1343 gettext("Unable to find group %s in "
1383 pair.directfile, pair.group, pair.ctag, qvol, &pair.doasync,
1400 "diskqueue %s to set %s:%s and its group"), qvol,
1412 pair.directfile, pair.group, pair.ctag, qvol, &pair.doasync,
1424 pair.directfile, pair.group, pair.ctag, qvol, &pair.doasync,
1436 pair.directfile, pair.group, pair.ctag, qvol, &pair.doasync,
1446 "diskqueue from set %s:%s and its group"), pair.thost,
1456 pair.directfile, pair.group, pair.ctag, qvol, &pair.doasync,
1467 "removed diskqueue from set %s:%s and its group "),
1482 pair.directfile, pair.group, pair.ctag, qvol, &pair.doasync,
1505 pair.directfile, pair.group, pair.ctag, qvol, &pair.doasync,
1521 "diskqueue for set %s:%s and its group with %s"),
1567 "of it's group"), shost, svol);
1571 "of it's group"), shost, svol);
1716 char group[NSC_MAXPATH];
1817 bzero(group, sizeof (group));
2289 * g group C ctag
2390 "sndr.set%d.group", setnumber);
2391 (void) cfg_get_cstring(cfg, key, group,
2392 sizeof (group));
2394 strncmp(group_arg, group, NSC_MAXPATH))
2554 (void) strncpy(group, argv[i + 1],
2556 if (group[NSC_MAXPATH - 1] != '\0') {
2557 rdc_err(NULL, gettext("group name is "
2672 (void) strncpy(group, reconfig_group,
2687 group)) == DISKQ_FAIL) {
2723 (void) strncpy(group, pair_list[pairs].group,
2879 group_p = *group? group : place_holder;
2892 * sbitmap.type.mode.group.cnode.options.diskq
2980 ? "async" : "sync", group, ctag,
3093 group_p = strlen(group) > 0 ? group :
3198 tobitmap, "mode", "group", "ctag",
3212 "mode", "group", "ctag", "options", 0);
3228 group, ctag, diskqueue, &doasync, reverse) < 0) {
3270 group_p = strlen(group) > 0 ? group :
3572 /* if we are in a group, update any other sets in the same group */
3583 if (pair.group == NULL) /* not in a group */
3585 if (!pair.group[0])
3586 break; /* not in a group */
3601 if (strcmp(pair.group, tmpair.group) != 0)
3602 continue; /* not the group we want */
3797 char *directfile, char *group, char *ctag, char *diskqueue,
3966 if ((group == NULL) || ((strcmp(group, "-")) == 0))
3969 (void) strncpy(parms.rdc_set->group_name, group, NSC_MAXPATH);
4321 (void) strncpy(group, parms.rdc_set->group_name,
4325 "sndr.set%d.group", i);
4326 if (cfg_put_cstring(cfg, key, group,
4327 strlen(group)) < 0)
4331 (void) strncpy(group, "-", NSC_MAXPATH);
4334 "sndr.set%d.group", i);
4335 if (cfg_put_cstring(cfg, key, group,
4336 strlen(group)) < 0)
5050 /* Filter according to ctag and group arguments */
5056 strncmp(group_arg, pair_list[i].group, NSC_MAXPATH))
5118 strncmp(group_arg, pairp->group, NSC_MAXPATH))
5134 (void) strncpy(pairp->group, reconfig_group,
5173 gettext("\t%s -g <group> -q a <vol>\t\tadd disk queue to "
5174 "group\n"), program);
5176 gettext("\t%s -g <group> -q d \t\tremove disk queue from"
5177 " group\n"), program);
5179 gettext("\t%s -g <group> -q r <newvol>\treplace disk queue for a"
5180 " group\n"), program);
5295 gettext("\t%s [opts] -R g <group> [set]\t"
5296 "reconfig group\n"), program);
5331 "\t-g <group>\toperate on sets in group only "
5347 "\\\n\t\t{sync | async} [g <group>] [q <qdev>] "
5357 "\\\n\t\t{sync | async} [g <group>] [q <qdev>]\n"));
5544 char *frombitmap, char *tobitmap, char *type, char *mode, char *group,
5565 if (group[0])
5566 checkgfield(cfg, setnumber, "group",
5567 gettext("group"), group);
5692 * verify_groupname: Check the group name for the following rules:
5705 rdc_err(NULL, gettext("group name cannot start with a '-'"));
5710 rdc_err(NULL, gettext("group name cannot contain a "