Lines Matching refs:res0
370 resource_needs_restart(const struct hast_resource *res0,
374 PJDLOG_ASSERT(strcmp(res0->hr_name, res1->hr_name) == 0);
376 if (strcmp(res0->hr_provname, res1->hr_provname) != 0)
378 if (strcmp(res0->hr_localpath, res1->hr_localpath) != 0)
380 if (res0->hr_role == HAST_ROLE_INIT ||
381 res0->hr_role == HAST_ROLE_SECONDARY) {
382 if (strcmp(res0->hr_remoteaddr, res1->hr_remoteaddr) != 0)
384 if (strcmp(res0->hr_sourceaddr, res1->hr_sourceaddr) != 0)
386 if (res0->hr_replication != res1->hr_replication)
388 if (res0->hr_checksum != res1->hr_checksum)
390 if (res0->hr_compression != res1->hr_compression)
392 if (res0->hr_timeout != res1->hr_timeout)
394 if (strcmp(res0->hr_exec, res1->hr_exec) != 0)
400 if (res0->hr_metaflush != res1->hr_metaflush)
407 resource_needs_reload(const struct hast_resource *res0,
411 PJDLOG_ASSERT(strcmp(res0->hr_name, res1->hr_name) == 0);
412 PJDLOG_ASSERT(strcmp(res0->hr_provname, res1->hr_provname) == 0);
413 PJDLOG_ASSERT(strcmp(res0->hr_localpath, res1->hr_localpath) == 0);
415 if (res0->hr_role != HAST_ROLE_PRIMARY)
418 if (strcmp(res0->hr_remoteaddr, res1->hr_remoteaddr) != 0)
420 if (strcmp(res0->hr_sourceaddr, res1->hr_sourceaddr) != 0)
422 if (res0->hr_replication != res1->hr_replication)
424 if (res0->hr_checksum != res1->hr_checksum)
426 if (res0->hr_compression != res1->hr_compression)
428 if (res0->hr_timeout != res1->hr_timeout)
430 if (strcmp(res0->hr_exec, res1->hr_exec) != 0)
432 if (res0->hr_metaflush != res1->hr_metaflush)