Lines Matching defs:pconf

4989 create_tmp_pset(char *pool_err, int err_size, pool_conf_t *pconf, pool_t *pool,
4996 if ((res = pool_resource_create(pconf, "pset", name)) == NULL)
4999 if (pool_associate(pconf, pool, res) != PO_SUCCESS)
5002 if ((elem = pool_resource_to_elem(pconf, res)) == NULL)
5011 if (pool_put_property(pconf, elem, "pset.max", val) != PO_SUCCESS) {
5019 if (pool_put_property(pconf, elem, "pset.min", val) != PO_SUCCESS) {
5030 create_tmp_pool(char *pool_err, int err_size, pool_conf_t *pconf, char *name,
5037 if (pool_conf_open(pconf, NULL, PO_TEMP) != PO_SUCCESS) {
5042 if ((pool = pool_create(pconf, name)) == NULL) {
5052 if ((elem = pool_to_elem(pconf, pool)) == NULL) {
5065 if (pool_put_property(pconf, elem, "pool.importance", val)
5075 if ((res = create_tmp_pset(pool_err, err_size, pconf, pool, name,
5081 if (pool_conf_status(pconf) == POF_INVALID) {
5090 if (pool_conf_validate(pconf, POV_RUNTIME) != PO_SUCCESS) {
5099 if (pool_conf_commit(pconf, 1) != PO_SUCCESS)
5103 (void) pool_conf_close(pconf);
5108 get_running_tmp_pset(pool_conf_t *pconf, pool_t *pool, pool_resource_t *pset,
5117 pe = pool_to_elem(pconf, pool);
5118 if (pool_get_property(pconf, pe, "pool.importance", pv)
5130 pe = pool_resource_to_elem(pconf, pset);
5131 if (pool_get_property(pconf, pe, "pset.min", pv) != POC_INVAL) {
5138 if (pool_get_property(pconf, pe, "pset.max", pv) != POC_INVAL) {
5162 verify_del_tmp_pool(pool_conf_t *pconf, char *tmp_name, char *pool_err,
5172 if (pool_conf_open(pconf, pool_dynamic_location(), PO_RDWR)
5178 pool = pool_get_pool(pconf, tmp_name);
5179 pset = pool_get_resource(pconf, "pset", tmp_name);
5190 if (get_running_tmp_pset(pconf, pool, pset, &pset_current)
5206 pool_resource_destroy(pconf, pset) != PO_SUCCESS) {
5212 pool_destroy(pconf, pool) != PO_SUCCESS) {
5218 if (pool_conf_commit(pconf, 0) != PO_SUCCESS)
5223 (void) pool_conf_close(pconf);
5236 pool_conf_t *pconf;
5245 if ((pconf = pool_conf_alloc()) == NULL)
5250 if (pool_conf_open(pconf, pool_dynamic_location(), PO_RDWR)
5253 pool_conf_free(pconf);
5257 pool = pool_get_pool(pconf, tmp_name);
5258 pset = pool_get_resource(pconf, "pset", tmp_name);
5265 if (pset != NULL && pool_resource_destroy(pconf, pset) != PO_SUCCESS) {
5270 if (pool != NULL && pool_destroy(pconf, pool) != PO_SUCCESS) {
5276 if (pool_conf_commit(pconf, 0) != PO_SUCCESS)
5280 (void) pool_conf_close(pconf);
5281 pool_conf_free(pconf);
5309 pool_conf_t *pconf;
5336 if ((pconf = pool_conf_alloc()) == NULL)
5345 if ((err = verify_del_tmp_pool(pconf, tmp_name, pool_err, err_size,
5347 pool_conf_free(pconf);
5352 err = create_tmp_pool(pool_err, err_size, pconf, tmp_name,
5355 pool_conf_free(pconf);