Lines Matching defs:gres
245 static struct hast_resource *gres;
317 cleanup(gres);
329 cleanup(gres);
1019 gres = res;
2224 PJDLOG_ASSERT(gres == res);
2247 if (strcmp(gres->hr_remoteaddr, vstr) != 0) {
2249 * Don't copy res->hr_remoteaddr to gres just yet.
2256 if (strcmp(gres->hr_sourceaddr, vstr) != 0) {
2257 strlcpy(gres->hr_sourceaddr, vstr, sizeof(gres->hr_sourceaddr));
2261 if (gres->hr_replication != vint) {
2262 gres->hr_replication = vint;
2266 if (gres->hr_checksum != vint) {
2267 gres->hr_checksum = vint;
2271 if (gres->hr_compression != vint) {
2272 gres->hr_compression = vint;
2276 if (gres->hr_timeout != vint) {
2277 gres->hr_timeout = vint;
2281 if (strcmp(gres->hr_exec, vstr) != 0) {
2282 strlcpy(gres->hr_exec, vstr, sizeof(gres->hr_exec));
2286 if (gres->hr_metaflush != vint) {
2287 gres->hr_metaflush = vint;
2301 if (!ISCONNECTED(gres, ii)) {
2306 if (proto_timeout(gres->hr_remotein,
2307 gres->hr_timeout) == -1) {
2311 if (proto_timeout(gres->hr_remoteout,
2312 gres->hr_timeout) == -1) {
2322 remote_close(gres, ii);
2326 strlcpy(gres->hr_remoteaddr, vstr,
2327 sizeof(gres->hr_remoteaddr));