Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] runqemu fix to skip tap devices
@ 2014-02-15 19:04 Scott Garman
  2014-02-15 19:04 ` [PATCH 1/1] runqemu: add ability to skip using an existing tap device Scott Garman
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Garman @ 2014-02-15 19:04 UTC (permalink / raw)
  To: openembedded-core

Hello,

This pull request adds the ability for runqemu to skip tap devices. It
was developed to resolve bug #5815.

Scott

The following changes since commit d3ba249aa1bf68aaeed226e934a4f4d5b7a19286:

  package_manager.py: move multilib prefix list computation function to RpmIndexer (2014-02-14 22:57:57 +0000)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib sgarman/runqemu-skiptap-oe
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=sgarman/runqemu-skiptap-oe

Scott Garman (1):
  runqemu: add ability to skip using an existing tap device

 scripts/runqemu-internal | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

-- 
1.8.3.2



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] runqemu: add ability to skip using an existing tap device
  2014-02-15 19:04 [PATCH 0/1] runqemu fix to skip tap devices Scott Garman
@ 2014-02-15 19:04 ` Scott Garman
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Garman @ 2014-02-15 19:04 UTC (permalink / raw)
  To: openembedded-core

Support the sitauation where a user could have another VM running
which uses tap devices. To prevent runqemu from trying to use the
same tap device, runqemu will skip using a tap device if it finds
a filename tapX.skip within its lock directory.

This fixes [YOCTO #5815]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
---
 scripts/runqemu-internal | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index f9ca380..d317dfd 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -178,6 +178,10 @@ else
         USE_PRECONF_TAP="no"
         for tap in $POSSIBLE; do
             LOCKFILE="$LOCKDIR/$tap"
+            if [ -e "$LOCKFILE.skip" ]; then
+                echo "Found $LOCKFILE.skip, skipping $tap"
+                continue
+            fi
             echo "Acquiring lockfile for $tap..."
             acquire_lock $LOCKFILE
             if [ $? -eq 0 ]; then
@@ -214,7 +218,7 @@ else
             fi 
         else
             echo "Using preconfigured tap device '$TAP'"
-            echo "If this is not intended, use flock on $LOCKFILE.lock to make runqemu skip $TAP."
+            echo "If this is not intended, touch $LOCKFILE.skip to make runqemu skip $TAP."
         fi
 
         cleanup() {
-- 
1.8.3.2



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-15 19:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-15 19:04 [PATCH 0/1] runqemu fix to skip tap devices Scott Garman
2014-02-15 19:04 ` [PATCH 1/1] runqemu: add ability to skip using an existing tap device Scott Garman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox