On Sun, 2009-09-27 at 02:46 +0400, Andrew Vagin wrote: 
> flist contain all files created by fsstress. If test clean up direcory
> on each interations that it should reinitilize flist.
> 
> Signed-off-by: Andrew Vagin <[email protected]>

Thanks.

Regards--
Subrata

> ---
>  testcases/kernel/fs/fsstress/fsstress.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/testcases/kernel/fs/fsstress/fsstress.c 
> b/testcases/kernel/fs/fsstress/fsstress.c
> index cf7ba76..736bd53 100644
> --- a/testcases/kernel/fs/fsstress/fsstress.c
> +++ b/testcases/kernel/fs/fsstress/fsstress.c
> @@ -491,6 +491,12 @@ int main(int argc, char **argv)
>               {
>                       sprintf(cmd,"rm -rf %s/*",dirname);
>                       system(cmd);
> +                     for (i = 0; i < FT_nft; i++) {
> +                             flist[i].nslots = 0;
> +                             flist[i].nfiles = 0;
> +                             free(flist[i].fents);
> +                             flist[i].fents = NULL;
> +                     }
>               }
>               loopcntr++;
>       }


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to