From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sfi-mx-3.v28.ch3.sourceforge.com ([172.29.28.123] helo=mx.sourceforge.net) by h25xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1MrVXv-00069P-E2 for ltp-list@lists.sourceforge.net; Sat, 26 Sep 2009 11:34:35 +0000 Received: from fg-out-1718.google.com ([72.14.220.156]) by 3b2kzd1.ch3.sourceforge.com with esmtp (Exim 4.69) id 1MrVXr-0004eD-6t for ltp-list@lists.sourceforge.net; Sat, 26 Sep 2009 11:34:35 +0000 Received: by fg-out-1718.google.com with SMTP id e21so396724fga.10 for ; Sat, 26 Sep 2009 04:34:25 -0700 (PDT) From: Andrew Vagin Date: Sat, 26 Sep 2009 15:34:19 +0400 Message-Id: <1253964859-23928-3-git-send-email-avagin@gmail.com> In-Reply-To: <1253964859-23928-2-git-send-email-avagin@gmail.com> References: <1253964859-23928-1-git-send-email-avagin@gmail.com> <1253964859-23928-2-git-send-email-avagin@gmail.com> Subject: [LTP] [PATCH 3/3] fsstress: renew flist if clean up test directory List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: subrata@linux.vnet.ibm.com Cc: ltp-list@lists.sourceforge.net flist contain all files created by fsstress. If test clean up direcory on each interations that it should reinitilize flist. --- testcases/kernel/fs/fsstress/fsstress.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/fs/fsstress/fsstress.c b/testcases/kernel/fs/fsstress/fsstress.c index db6b358..bf5df7c 100644 --- a/testcases/kernel/fs/fsstress/fsstress.c +++ b/testcases/kernel/fs/fsstress/fsstress.c @@ -491,6 +491,13 @@ 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++; } -- 1.6.2.5 ------------------------------------------------------------------------------ Come build with us! The BlackBerry® 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-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list