Lines Matching defs:pg

293 	scf_propertygroup_t *pg = NULL;
321 if (((pg = scf_pg_create(handle)) == NULL) ||
335 if (scf_service_get_pg(svc, pgName, pg) == -1) {
341 syslog(LOG_ERR, "get pg %s failed - %s",
350 if (scf_transaction_start(tran, pg) == -1) {
380 if (scf_pg_get_property(pg, groupName, prop) == -1) {
579 if (pg != NULL) {
580 scf_pg_destroy(pg);
637 scf_propertygroup_t *pg = NULL;
662 if (((pg = scf_pg_create(handle)) == NULL) ||
674 if (scf_service_get_pg(svc, luPgName, pg) == -1) {
679 SCF_GROUP_APPLICATION, 0, pg) == -1) {
680 syslog(LOG_ERR, "add pg %s failed - %s",
691 syslog(LOG_ERR, "get lu pg %s failed - %s",
704 if (scf_transaction_start(tran, pg) == -1) {
747 if (scf_pg_get_property(pg, STMF_VE_CNT, prop) == -1) {
786 * Delete the pg and get out if this is the last
789 if (scf_pg_delete(pg) == -1) {
790 syslog(LOG_ERR, "delete pg %s failed - %s",
889 if (pg != NULL) {
890 scf_pg_destroy(pg);
926 scf_propertygroup_t *pg = NULL;
955 if (((pg = scf_pg_create(handle)) == NULL) ||
982 0, pg) == -1) {
986 syslog(LOG_ERR, "add pg %s failed - %s",
1002 if (scf_transaction_start(tran, pg) == -1) {
1253 /* if there was an error, delete the created pg if one was created */
1255 if (scf_pg_delete(pg) == -1) {
1256 syslog(LOG_ERR, "delete VE pg %s failed - %s",
1260 if (pg != NULL) {
1261 scf_pg_destroy(pg);
1290 scf_propertygroup_t *pg = NULL;
1309 if ((pg = scf_pg_create(handle)) == NULL) {
1325 if (scf_service_get_pg(svc, pgName, pg) == -1) {
1327 syslog(LOG_ERR, "get pg %s failed - %s",
1336 if (!pgNotFound && (scf_pg_delete(pg) == -1)) {
1337 syslog(LOG_ERR, "delete pg %s failed - %s",
1357 if (pg != NULL) {
1358 scf_pg_destroy(pg);
1385 scf_propertygroup_t *pg = NULL;
1410 if (((pg = scf_pg_create(handle)) == NULL) ||
1426 if (scf_service_get_pg(svc, pgRefName, pg) == -1) {
1430 SCF_GROUP_APPLICATION, 0, pg) == -1) {
1431 syslog(LOG_ERR, "add pg %s failed - %s",
1436 syslog(LOG_ERR, "get pg %s failed - %s",
1440 syslog(LOG_ERR, "get pg %s failed - %s",
1452 if (scf_iter_pg_properties(propIter, pg) == -1) {
1528 if (scf_pg_get_property(pg, buf1, prop) == -1) {
1558 if (scf_transaction_start(tran, pg) == -1) {
1651 if (pg != NULL) {
1652 scf_pg_destroy(pg);
1692 scf_propertygroup_t *pg = NULL;
1711 if (((pg = scf_pg_create(handle)) == NULL) ||
1721 if (scf_service_get_pg(svc, pgName, pg) == -1) {
1723 syslog(LOG_ERR, "get pg %s failed - %s",
1727 syslog(LOG_ERR, "get pg %s failed - %s",
1737 if (scf_iter_pg_properties(propIter, pg) == -1) {
1763 if (scf_iter_pg_properties(propIter, pg) == -1) {
1831 if (pg != NULL) {
1832 scf_pg_destroy(pg);
1865 scf_propertygroup_t *pg = NULL;
1888 if (((pg = scf_pg_create(handle)) == NULL) ||
1901 if (scf_service_get_pg(svc, pgName, pg) == -1) {
1907 syslog(LOG_ERR, "get pg %s failed - %s",
1916 if (scf_pg_get_property(pg, groupName, prop) == -1) {
1998 if (pg != NULL) {
1999 scf_pg_destroy(pg);
2072 scf_propertygroup_t *pg = NULL;
2082 if (((pg = scf_pg_create(handle)) == NULL) ||
2113 if (scf_service_get_pg(svc, STMF_DATA_GROUP, pg) == -1) {
2119 syslog(LOG_ERR, "get pg %s failed - %s",
2129 if (scf_pg_get_property(pg, STMF_PERSIST_TYPE, prop) == -1) {
2151 if (scf_transaction_start(tran, pg) == -1) {
2253 if (pg != NULL) {
2254 scf_pg_destroy(pg);
2289 scf_propertygroup_t *pg = NULL;
2317 if (((pg = scf_pg_create(handle)) == NULL) ||
2382 if (scf_service_get_pg(svc, STMF_DATA_GROUP, pg) == -1) {
2388 syslog(LOG_ERR, "get pg %s failed - %s",
2397 if (scf_pg_get_property(pg, psStmfProp, prop) == -1) {
2415 if (scf_transaction_start(tran, pg) == -1) {
2526 if (pg != NULL) {
2527 scf_pg_destroy(pg);
2644 scf_propertygroup_t *pg = NULL;
2652 if (((pg = scf_pg_create(handle)) == NULL) ||
2668 if (scf_service_get_pg(svc, STMF_DATA_GROUP, pg) == -1) {
2672 syslog(LOG_ERR, "get pg %s failed - %s",
2685 SCF_GROUP_APPLICATION, 0, pg) == -1) {
2686 syslog(LOG_ERR, "add pg %s failed - %s",
2699 if (scf_pg_get_property(pg, STMF_VERSION_NAME, prop) == -1) {
2726 if (scf_transaction_start(tran, pg) == -1) {
2772 if (scf_pg_get_property(pg, STMF_VERSION_NAME, prop) == -1) {
2806 if (pg != NULL) {
2807 scf_pg_destroy(pg);
2842 scf_propertygroup_t *pg = NULL;
2857 if (((pg = scf_pg_create(handle)) == NULL) ||
2870 if (scf_service_get_pg(svc, pgName, pg) == -1) {
2874 syslog(LOG_ERR, "get pg %s failed - %s",
2884 if (scf_iter_pg_properties(propIter, pg) == -1) {
2949 if (pg != NULL) {
2950 scf_pg_destroy(pg);
3048 scf_propertygroup_t *pg = NULL;
3071 pg = scf_pg_create(handle);
3072 if (pg == NULL) {
3073 syslog(LOG_ERR, "scf pg alloc failed - %s",
3122 if (pg != NULL) {
3123 scf_pg_destroy(pg);
3247 scf_propertygroup_t *pg = NULL;
3266 if (((pg = scf_pg_create(handle)) == NULL) ||
3284 while (scf_iter_next_pg(pgIter, pg) == 1) {
3285 if (scf_pg_get_name(pg, buf, sizeof (buf)) == -1) {
3286 syslog(LOG_ERR, "get pg name failed - %s",
3321 while ((scf_iter_next_pg(pgIter, pg) == 1) && (i < guidCnt)) {
3322 if (scf_pg_get_name(pg, buf, sizeof (buf)) == -1) {
3323 syslog(LOG_ERR, "get pg name failed - %s",
3366 if (pg != NULL) {
3367 scf_pg_destroy(pg);
3495 scf_propertygroup_t *pg = NULL;
3515 if (((pg = scf_pg_create(handle)) == NULL) ||
3538 if (scf_service_get_pg(svc, luPgName, pg) == -1) {
3542 syslog(LOG_ERR, "get pg %s failed - %s",
3550 if (scf_pg_get_property(pg, STMF_VE_CNT, prop) == -1) {
3577 if (scf_iter_pg_properties(propIter, pg) == -1) {
3657 if (pg != NULL) {
3658 scf_pg_destroy(pg);
3688 scf_propertygroup_t *pg = NULL;
3705 if (((pg = scf_pg_create(handle)) == NULL) ||
3719 if (scf_service_get_pg(svc, viewEntryPgName, pg) == -1) {
3723 syslog(LOG_ERR, "get pg %s failed - %s",
3747 if (scf_pg_get_property(pg, STMF_VE_ALLHOSTS,
3775 if (scf_pg_get_property(pg, STMF_VE_HOSTGROUP,
3804 if (scf_pg_get_property(pg, STMF_VE_ALLTARGETS,
3832 if (scf_pg_get_property(pg, STMF_VE_TARGETGROUP, prop) == -1) {
3860 if (scf_pg_get_property(pg, STMF_VE_LUNBR,
3899 if (pg != NULL) {
3900 scf_pg_destroy(pg);
4002 scf_propertygroup_t *pg = NULL;
4036 if (((pg = scf_pg_create(handle)) == NULL) ||
4048 if (scf_service_get_pg(svc, pgName, pg) == -1) {
4050 syslog(LOG_ERR, "get pg %s failed - %s", pgName,
4063 if (scf_pg_get_property(pg, STMF_PROVIDER_DATA_PROP_COUNT,
4101 if (scf_pg_get_property(pg, STMF_PROVIDER_DATA_PROP_SET_COUNT,
4159 if (scf_pg_get_property(pg, dataPropertyName, prop) == -1) {
4208 if (pg != NULL) {
4209 scf_pg_destroy(pg);
4238 scf_propertygroup_t *pg = NULL;
4258 if (((pg = scf_pg_create(handle)) == NULL) ||
4278 while (scf_iter_next_pg(pgIter, pg) == 1) {
4279 if (scf_pg_get_name(pg, buf, sizeof (buf)) == -1) {
4316 while ((scf_iter_next_pg(pgIter, pg) == 1) && (i < providerCnt)) {
4317 if (scf_pg_get_name(pg, buf, sizeof (buf)) == -1) {
4334 if (scf_pg_get_property(pg, STMF_PROVIDER_DATA_PROP_TYPE,
4392 if (pg != NULL) {
4393 scf_pg_destroy(pg);
4425 scf_propertygroup_t *pg = NULL;
4484 if (((pg = scf_pg_create(handle)) == NULL) ||
4505 if (scf_service_get_pg(svc, pgName, pg) == -1) {
4507 syslog(LOG_ERR, "get pg %s failed - %s",
4516 SCF_GROUP_APPLICATION, 0, pg) == -1) {
4517 syslog(LOG_ERR, "add pg %s failed - %s",
4529 if (scf_transaction_start(tran, pg) == -1) {
4540 if (scf_pg_get_property(pg, STMF_PROVIDER_DATA_PROP_COUNT,
4577 if (scf_pg_get_property(pg, STMF_PROVIDER_DATA_PROP_SET_COUNT,
4972 if (pg != NULL) {
4973 scf_pg_destroy(pg);
5043 scf_propertygroup_t *pg = NULL;
5054 pg = scf_pg_create(handle);
5055 if (pg == NULL) {
5056 syslog(LOG_ERR, "scf pg alloc failed - %s",
5080 if (scf_service_get_pg(svc, viewEntryPgName, pg) == -1) {
5084 syslog(LOG_ERR, "get pg %s failed - %s",
5107 if (pg != NULL) {
5108 scf_pg_destroy(pg);
5131 scf_propertygroup_t *pg = NULL;
5154 pg = scf_pg_create(handle);
5155 if (pg == NULL) {
5156 syslog(LOG_ERR, "scf pg alloc failed - %s",
5180 if (scf_service_get_pg(svc, viewEntryPgName, pg) == -1) {
5184 syslog(LOG_ERR, "get pg %s failed - %s",
5207 if (scf_pg_delete(pg) == -1) {
5208 syslog(LOG_ERR, "delete pg %s failed - %s", viewEntryPgName,
5242 if (pg != NULL) {
5243 scf_pg_destroy(pg);