Lines Matching refs:res

944 	int res;
960 if ((res = resolvepath(path, respath, sizeof (respath))) == -1) {
964 respath[res] = '\0';
2163 int res;
2165 res = zonecfg_valid_net_address(nwiftabptr->zone_nwif_address, &lifr);
2166 if (res != Z_OK) {
2167 zerror(zlogp, B_FALSE, "%s: %s", zonecfg_strerror(res),
3672 int res;
3687 res = statvfs64(parent, &buf2);
3690 if (res != 0)
4399 int res;
4411 if ((res = zonecfg_get_snapshot_handle(zone_name, handle)) != Z_OK) {
4414 return (res);
4492 if ((res = zonecfg_bind_tmp_pool(handle, zoneid, pool_err,
4494 if (res == Z_POOL || res == Z_POOL_CREATE || res == Z_POOL_BIND)
4496 "cannot be instantiated", zonecfg_strerror(res),
4500 "temporary pool: %s", zonecfg_strerror(res));
4518 if ((res = zonecfg_bind_pool(handle, zoneid, pool_err,
4520 if (res == Z_POOL_BIND)
4523 else if (res == Z_POOL)
4525 zonecfg_strerror(res), pool_err);
4528 zonecfg_strerror(res));
4540 report_prop_err(zlog_t *zlogp, const char *name, const char *value, int res)
4542 switch (res) {
4553 zerror(zlogp, B_TRUE, "fetching property %s: %d", name, res);
4570 int res;
4574 res = zonecfg_get_hostid(handle, hostidp, sizeof (hostidp));
4576 if (res == Z_BAD_PROPERTY) {
4578 } else if (res != Z_OK) {
4579 report_prop_err(zlogp, "hostid", hostidp, res);
4580 return (res);
4584 if ((res = zone_setattr(zoneid, ZONE_ATTR_HOSTID, &hostid,
4587 "zone hostid is not valid: %s: %d", hostidp, res);
4591 return (res);
4600 int res;
4602 res = zonecfg_lookup_secflags(handle, &tab);
4604 if ((res != Z_OK) &&
4606 (res != Z_NO_ENTRY) && (res != Z_BAD_PROPERTY)) {
4608 "invalid: %d", res);
4609 return (res);
4674 if ((res = zone_setattr(zoneid, ZONE_ATTR_SECFLAGS, &secflags,
4677 "security-flags couldn't be set: %d", res);
4690 int res;
4692 res = zonecfg_get_fs_allowed(handle, fsallowed, len);
4694 if (res == Z_BAD_PROPERTY) {
4697 } else if (res != Z_OK) {
4698 report_prop_err(zlogp, "fs-allowed", fsallowed, res);
4699 return (res);
4718 "fs-allowed couldn't be set: %s: %d", fsallowedp, res);
4729 int res = Z_OK;
4735 if ((res = zonecfg_get_snapshot_handle(zone_namep, handle)) != Z_OK) {
4740 if ((res = setup_zone_hostid(handle, zlogp, zoneid)) != Z_OK)
4743 if ((res = setup_zone_fs_allowed(handle, zlogp, zoneid)) != Z_OK)
4746 if ((res = setup_zone_secflags(handle, zlogp, zoneid)) != Z_OK)
4751 return (res);
5221 int res;
5390 if ((res = zonecfg_destroy_tmp_pool(zone_name, pool_err,
5392 if (res == Z_POOL)