From: ericm Date: Tue, 6 Jan 2004 10:39:07 +0000 (+0000) Subject: liblustre: X-Git-Tag: v1_7_0_51~2^7~130 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=eae5f2f9db73ac49c3d0a78d304ec8867e2a57c4;p=fs%2Flustre-release.git liblustre: - more items of replay-ost-single --- diff --git a/lustre/liblustre/tests/replay_ost_single.c b/lustre/liblustre/tests/replay_ost_single.c index d4ac0d4..2897807 100644 --- a/lustre/liblustre/tests/replay_ost_single.c +++ b/lustre/liblustre/tests/replay_ost_single.c @@ -204,12 +204,16 @@ void t3() char *str = "xxxxjoiwlsdf98lsjdfsjfoajflsjfajfoaidfojaj08eorje;"; ENTRY("touch"); - replay_barrier(); + printf("touch to create a file\n"); t_echo_create(path, str); + replay_barrier(); mds_failover(); + printf("read & verify\n"); t_grep(path, str); t_unlink(path); + /* XXX have problem without this, seems server side problem XXX */ + sleep(5); } void t4() @@ -220,14 +224,16 @@ void t4() int count = 10, i; ENTRY("|X| 10 open(CREAT)s (ping involved)"); - replay_barrier(); + printf("create %d files\n", count); for (i = 0; i < count; i++) { sprintf(namebuf, "%s%02d", path, i); sprintf(str, "%s-%08d-%08x-AAAAA", "content", i, i); t_echo_create(namebuf, str); } + replay_barrier(); mds_failover(); + printf("read & verify\n"); for (i = 0; i < count; i++) { sprintf(namebuf, "%s%02d", path, i); sprintf(str, "%s-%08d-%08x-AAAAA", "content", i, i); @@ -321,10 +327,8 @@ int main(int argc, char * const argv[]) t0(); t1(); t2(); -/* XXX still have problems t3(); t4(); - */ printf("liblustre is about shutdown\n"); __liblustre_cleanup_();