All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Helsley <matthltc@us.ibm.com>
To: Suzuki Poulose <suzuki@in.ibm.com>
Cc: risrajak@in.ibm.com, ltp-list@lists.sourceforge.net
Subject: Re: [LTP] PATCH : test_fs_bind testscript for busybox machines
Date: Tue, 4 May 2010 15:35:45 -0700	[thread overview]
Message-ID: <20100504223545.GF31830@count0.beaverton.ibm.com> (raw)
In-Reply-To: <4BD53483.9080603@in.ibm.com>

On Mon, Apr 26, 2010 at 12:06:51PM +0530, Suzuki Poulose wrote:
> Hi,
> 
> The test_fs_bind testscript hangs indefinitely when run on a machine
> where busybox applets are used.
> 
> The test hangs while trying to restore the mounts after a test run.
> 
> 
> This happens because the "xargs" applet from busybox doesn't
> understand the --max-args=1 option. Thus, the mounts from the test
> are not removed and this goes on in a loop, indefinitely.
> 
> This could be avoided by using "-n" option which is supported by
> both the implementations of xargs.
> 
> 
> Attached the patch here.
> 
> Thanks
> 
> Suzuki

Just noticed this thread. Looks good, thanks!

Acked-by: Matt Helsley <matthltc@us.ibm.com>

> 
> Signed-off-by: Suzuki K P <suzuki@in.ibm.com>
> 
> Index: ltp/testscripts/test_fs_bind.sh
> ===================================================================
> --- ltp.orig/testscripts/test_fs_bind.sh	2009-12-22 03:28:25.000000000 +0000
> +++ ltp/testscripts/test_fs_bind.sh	2010-04-26 05:50:41.000000000 +0000
> @@ -238,7 +238,7 @@
>  	# new mounts around and will never remove mounts outside the test
>  	# directory
>  	( while grep_proc_mounts ; do
> -		grep_proc_mounts | awk '{print $2}' | xargs -r --max-args=1 umount -l
> +		grep_proc_mounts | awk '{print $2}' | xargs -r -n 1 umount -l
>  	done ) >& /dev/null
>  	
>  	# mount list and exit with 0

> ------------------------------------------------------------------------------

> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list


------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  parent reply	other threads:[~2010-05-04 22:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-26  6:36 [LTP] PATCH : test_fs_bind testscript for busybox machines Suzuki Poulose
2010-04-26  7:48 ` Rishikesh K Rajak
2010-05-04 22:35 ` Matt Helsley [this message]
2010-05-05  4:44   ` Rishikesh K Rajak

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=20100504223545.GF31830@count0.beaverton.ibm.com \
    --to=matthltc@us.ibm.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=risrajak@in.ibm.com \
    --cc=suzuki@in.ibm.com \
    /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.