Lines Matching refs:res0
373 resource_needs_restart(const struct hast_resource *res0,
377 PJDLOG_ASSERT(strcmp(res0->hr_name, res1->hr_name) == 0);
379 if (strcmp(res0->hr_provname, res1->hr_provname) != 0)
381 if (strcmp(res0->hr_localpath, res1->hr_localpath) != 0)
383 if (res0->hr_role == HAST_ROLE_INIT ||
384 res0->hr_role == HAST_ROLE_SECONDARY) {
385 if (strcmp(res0->hr_remoteaddr, res1->hr_remoteaddr) != 0)
387 if (strcmp(res0->hr_sourceaddr, res1->hr_sourceaddr) != 0)
389 if (res0->hr_replication != res1->hr_replication)
391 if (res0->hr_checksum != res1->hr_checksum)
393 if (res0->hr_compression != res1->hr_compression)
395 if (res0->hr_timeout != res1->hr_timeout)
397 if (strcmp(res0->hr_exec, res1->hr_exec) != 0)
403 if (res0->hr_metaflush != res1->hr_metaflush)
410 resource_needs_reload(const struct hast_resource *res0,
414 PJDLOG_ASSERT(strcmp(res0->hr_name, res1->hr_name) == 0);
415 PJDLOG_ASSERT(strcmp(res0->hr_provname, res1->hr_provname) == 0);
416 PJDLOG_ASSERT(strcmp(res0->hr_localpath, res1->hr_localpath) == 0);
418 if (res0->hr_role != HAST_ROLE_PRIMARY)
421 if (strcmp(res0->hr_remoteaddr, res1->hr_remoteaddr) != 0)
423 if (strcmp(res0->hr_sourceaddr, res1->hr_sourceaddr) != 0)
425 if (res0->hr_replication != res1->hr_replication)
427 if (res0->hr_checksum != res1->hr_checksum)
429 if (res0->hr_compression != res1->hr_compression)
431 if (res0->hr_timeout != res1->hr_timeout)
433 if (strcmp(res0->hr_exec, res1->hr_exec) != 0)
435 if (res0->hr_metaflush != res1->hr_metaflush)