From: Martin R. <mr...@us...> - 2005-11-28 14:18:43
|
Update of /cvsroot/ltp/ltp/testcases/network/nfsv4/locks In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26806 Modified Files: locktests.c Log Message: Updated locktests testcases from Vincent Roqueta Index: locktests.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/network/nfsv4/locks/locktests.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** locktests.c 22 Nov 2005 14:55:58 -0000 1.1 --- locktests.c 28 Nov 2005 14:18:34 -0000 1.2 *************** *** 544,547 **** --- 544,555 ---- for(i=0; i<clnt; i++) write(dp->lclnt[i][1], &a, sizeof(int)); + /* Get CLEAN AcK from slaves */ + for(i=0; i<clnt; i++){ + if(read(reception, &a,sizeof(int))<0){ + perror("Can't read master pipe"); + exit(1); + } + } + /* close and open file */ close(dp->fd); *************** *** 750,753 **** --- 758,766 ---- case CLEAN: close(ftest); + /* Send CLEAN Ack */ + if(write(maitre,&resultat,sizeof(int))<0){ + P("Slave num %d\n", df->dpr->whoami); + perror("Slave\n"); + } etat=SYNC; continue; |