All of lore.kernel.org
 help / color / mirror / Atom feed
From: Subrata Modak <subrata@linux.vnet.ibm.com>
To: Andrew Vagin <avagin@gmail.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH 5/5] fsstress: renew flist if clean up test directory
Date: Sun, 27 Sep 2009 23:45:36 +0530	[thread overview]
Message-ID: <1254075338.10457.28.camel@subratamodak.linux.ibm.com> (raw)
In-Reply-To: <1254005162-27353-5-git-send-email-avagin@gmail.com>

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 <avagin@gmail.com>

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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2009-09-27 18:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-26 22:45 [LTP] [PATCH 1/5] fsstress: delete tralling spaces Andrew Vagin
2009-09-26 22:45 ` [LTP] [PATCH 2/5] fsstress: use tabs instead of spaces for indentation Andrew Vagin
2009-09-26 22:46   ` [LTP] [PATCH 3/5] fsstress: fix memory leaks Andrew Vagin
2009-09-26 22:46     ` [LTP] [PATCH 4/5] fsstress: fix memory leak in fread_d Andrew Vagin
2009-09-26 22:46       ` [LTP] [PATCH 5/5] fsstress: renew flist if clean up test directory Andrew Vagin
2009-09-27 18:15         ` Subrata Modak [this message]
2009-09-27 18:15       ` [LTP] [PATCH 4/5] fsstress: fix memory leak in fread_d Subrata Modak
2009-09-27 18:15     ` [LTP] [PATCH 3/5] fsstress: fix memory leaks Subrata Modak
2009-09-27 18:15   ` [LTP] [PATCH 2/5] fsstress: use tabs instead of spaces for indentation Subrata Modak
2009-09-27 18:15 ` [LTP] [PATCH 1/5] fsstress: delete tralling spaces Subrata Modak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1254075338.10457.28.camel@subratamodak.linux.ibm.com \
    --to=subrata@linux.vnet.ibm.com \
    --cc=avagin@gmail.com \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.