* [Qemu-devel] [RESEND][PATCH] consolidate definition for tap script and smb support
@ 2008-12-15 6:44 Carlo Marcelo Arenas Belon
2008-12-18 22:52 ` Aurelien Jarno
0 siblings, 1 reply; 2+ messages in thread
From: Carlo Marcelo Arenas Belon @ 2008-12-15 6:44 UTC (permalink / raw)
To: qemu-devel; +Cc: aliguori
[-- Attachment #1: Type: text/plain, Size: 501 bytes --]
This is an updated patch to consolidate the handling of the location of
the "net" scripts to easy patching (as used in kvm) and which was
originally presented in :
http://lists.gnu.org/archive/html/qemu-devel/2008-11/msg01218.html
since the introduction of net.c in r5581 there had been 2 places where
the location of the TAP helper scripts and SMB daemon are defined.
the following patch move those definitions to net.h so they are accessible
for net.c and vl.c but defined only once
Carlo
---
[-- Attachment #2: qemu-consolidate-net-define.patch --]
[-- Type: text/plain, Size: 1435 bytes --]
Index: vl.c
===================================================================
--- vl.c (revision 6041)
+++ vl.c (working copy)
@@ -149,14 +149,6 @@
#include "exec-all.h"
-#define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
-#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"
-#ifdef __sun__
-#define SMBD_COMMAND "/usr/sfw/sbin/smbd"
-#else
-#define SMBD_COMMAND "/usr/sbin/smbd"
-#endif
-
//#define DEBUG_UNUSED_IOPORT
//#define DEBUG_IOPORT
//#define DEBUG_NET
Index: net.c
===================================================================
--- net.c (revision 6041)
+++ net.c (working copy)
@@ -120,14 +120,6 @@
#define memalign(align, size) malloc(size)
#endif
-#define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
-#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"
-#ifdef __sun__
-#define SMBD_COMMAND "/usr/sfw/sbin/smbd"
-#else
-#define SMBD_COMMAND "/usr/sbin/smbd"
-#endif
-
static VLANState *first_vlan;
/***********************************************************/
Index: net.h
===================================================================
--- net.h (revision 6041)
+++ net.h (working copy)
@@ -78,4 +78,12 @@
int slirp_is_inited(void);
void net_client_check(void);
+#define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
+#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"
+#ifdef __sun__
+#define SMBD_COMMAND "/usr/sfw/sbin/smbd"
+#else
+#define SMBD_COMMAND "/usr/sbin/smbd"
#endif
+
+#endif
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [RESEND][PATCH] consolidate definition for tap script and smb support
2008-12-15 6:44 [Qemu-devel] [RESEND][PATCH] consolidate definition for tap script and smb support Carlo Marcelo Arenas Belon
@ 2008-12-18 22:52 ` Aurelien Jarno
0 siblings, 0 replies; 2+ messages in thread
From: Aurelien Jarno @ 2008-12-18 22:52 UTC (permalink / raw)
To: qemu-devel
On Mon, Dec 15, 2008 at 06:44:49AM +0000, Carlo Marcelo Arenas Belon wrote:
> This is an updated patch to consolidate the handling of the location of
> the "net" scripts to easy patching (as used in kvm) and which was
> originally presented in :
>
> http://lists.gnu.org/archive/html/qemu-devel/2008-11/msg01218.html
>
> since the introduction of net.c in r5581 there had been 2 places where
> the location of the TAP helper scripts and SMB daemon are defined.
>
> the following patch move those definitions to net.h so they are accessible
> for net.c and vl.c but defined only once
Thanks, applied.
> Index: vl.c
> ===================================================================
> --- vl.c (revision 6041)
> +++ vl.c (working copy)
> @@ -149,14 +149,6 @@
>
> #include "exec-all.h"
>
> -#define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
> -#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"
> -#ifdef __sun__
> -#define SMBD_COMMAND "/usr/sfw/sbin/smbd"
> -#else
> -#define SMBD_COMMAND "/usr/sbin/smbd"
> -#endif
> -
> //#define DEBUG_UNUSED_IOPORT
> //#define DEBUG_IOPORT
> //#define DEBUG_NET
> Index: net.c
> ===================================================================
> --- net.c (revision 6041)
> +++ net.c (working copy)
> @@ -120,14 +120,6 @@
> #define memalign(align, size) malloc(size)
> #endif
>
> -#define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
> -#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"
> -#ifdef __sun__
> -#define SMBD_COMMAND "/usr/sfw/sbin/smbd"
> -#else
> -#define SMBD_COMMAND "/usr/sbin/smbd"
> -#endif
> -
> static VLANState *first_vlan;
>
> /***********************************************************/
> Index: net.h
> ===================================================================
> --- net.h (revision 6041)
> +++ net.h (working copy)
> @@ -78,4 +78,12 @@
> int slirp_is_inited(void);
> void net_client_check(void);
>
> +#define DEFAULT_NETWORK_SCRIPT "/etc/qemu-ifup"
> +#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/qemu-ifdown"
> +#ifdef __sun__
> +#define SMBD_COMMAND "/usr/sfw/sbin/smbd"
> +#else
> +#define SMBD_COMMAND "/usr/sbin/smbd"
> #endif
> +
> +#endif
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-18 22:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-15 6:44 [Qemu-devel] [RESEND][PATCH] consolidate definition for tap script and smb support Carlo Marcelo Arenas Belon
2008-12-18 22:52 ` Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).