From: Jan Kiszka <jan.kiszka@siemens.com>
To: quintela@redhat.com
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 06/15] Add --disable-smb to remove smb directories support
Date: Tue, 23 Jun 2009 19:25:43 +0200 [thread overview]
Message-ID: <4A411017.4030008@siemens.com> (raw)
In-Reply-To: <e48c78167658eaba084c8616330ea73da233d79f.1245764569.git.quintela@redhat.com>
quintela@redhat.com wrote:
> From: Juan Quintela <quintela@redhat.com>
>
>
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
> configure | 9 +++++++++
> net.c | 2 ++
> qemu-options.hx | 2 +-
> vl.c | 2 +-
> 4 files changed, 13 insertions(+), 2 deletions(-)
>
> diff --git a/configure b/configure
> index f859065..93823cb 100755
> --- a/configure
> +++ b/configure
> @@ -192,6 +192,7 @@ mixemu="no"
> bluez="yes"
> kvm="no"
> usb="yes"
> +smb="yes"
> kerneldir=""
> aix="no"
> blobs="yes"
> @@ -439,6 +440,8 @@ for opt do
> ;;
> --disable-usb) usb="no"
> ;;
> + --disable-smb) smb="no"
> + ;;
> --disable-kvm) kvm="no"
> ;;
> --enable-profiler) profiler="yes"
> @@ -631,6 +634,7 @@ echo " --disable-curses disable curses output"
> echo " --disable-curl disable curl connectivity"
> echo " --disable-bluez disable bluez stack connectivity"
> echo " --disable-usb disable usb stack connectivity"
> +echo " --disable-smb disable smb directories support"
> echo " --disable-kvm disable KVM acceleration support"
> echo " --disable-nptl disable usermode NPTL support"
> echo " --enable-system enable all system emulation targets"
> @@ -663,6 +667,7 @@ if test "$mingw32" = "yes" ; then
> oss="no"
> linux_user="no"
> bsd_user="no"
> + smb="no"
> OS_CFLAGS="$OS_CFLAGS -DWIN32_LEAN_AND_MEAN -DWINVER=0x501"
> fi
>
> @@ -1454,6 +1459,7 @@ echo "fdt support $fdt"
> echo "preadv support $preadv"
> echo "bluetooth support $bluez"
> echo "usb support $usb"
> +echo "smb directories $smb"
>
> if test $sdl_too_old = "yes"; then
> echo "-> Your SDL version is too old - please upgrade to have SDL support"
> @@ -1776,6 +1782,9 @@ fi
> if test "$xen" = "yes" ; then
> echo "XEN_LIBS=-lxenstore -lxenctrl -lxenguest" >> $config_mak
> fi
> +if test "$smb" = "yes" ; then
> + echo "#define CONFIG_SMB 1" >> $config_h
> +fi
> if test "$aio" = "yes" ; then
> echo "#define CONFIG_AIO 1" >> $config_h
> echo "CONFIG_AIO=yes" >> $config_mak
> diff --git a/net.c b/net.c
> index 55f70f2..8142f5e 100644
> --- a/net.c
> +++ b/net.c
> @@ -996,6 +996,7 @@ static void slirp_smb(const char *exported_dir)
> slirp_add_exec(0, smb_cmdline, 4, 139);
> }
>
> +#ifdef CONFIG_SMB
> /* automatic user mode samba server configuration */
> void net_slirp_smb(const char *exported_dir)
> {
> @@ -1008,6 +1009,7 @@ void net_slirp_smb(const char *exported_dir)
> slirp_smb(exported_dir);
> }
> }
> +#endif
>
> #endif /* !defined(_WIN32) */
>
> diff --git a/qemu-options.hx b/qemu-options.hx
> index c765869..0a0f327 100644
> --- a/qemu-options.hx
> +++ b/qemu-options.hx
> @@ -937,7 +937,7 @@ qemu -hda linux.img -boot n -tftp /path/to/tftp/files -bootp /pxelinux.0
> @end example
> ETEXI
>
> -#ifndef _WIN32
> +#ifdef CONFIG_SMB
> DEF("smb", HAS_ARG, QEMU_OPTION_smb, \
> "-smb dir allow SMB access to files in 'dir' [-net user]\n")
> #endif
> diff --git a/vl.c b/vl.c
> index e1ead85..830ffa3 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -5314,7 +5314,7 @@ int main(int argc, char **argv, char **envp)
> case QEMU_OPTION_bootp:
> bootp_filename = optarg;
> break;
> -#ifndef _WIN32
> +#ifdef CONFIG_SMB
> case QEMU_OPTION_smb:
> net_slirp_smb(optarg);
> break;
This patch collides with pending rework of the slirp stack. I hope to
role them out the next days (some tests and one feature is missing ATM).
I would appreciate if we can synchronize before merging -- if we really
want it...
I think the patch does not reflect the dependency of CONFIG_SMB on
CONFIG_SLIRP. Moreover, I bet it's not covering all bits. Given the
small amount of code it avoids, I would say: keep this feature under the
hood of CONFIG_SLIRP. It's not worth the complication (it will become
much more complicated with my fully configurable slirp stack, see
earlier postings).
Jan
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2009-06-23 17:25 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-23 14:13 [Qemu-devel] [RFC PATCH 00/15] Be able to compile out not needed options quintela
2009-06-23 14:13 ` [Qemu-devel] [PATCH 01/15] Only compile-in selected audio drivers quintela
2009-06-23 15:52 ` malc
2009-06-23 14:14 ` [Qemu-devel] [PATCH 02/15] Make --disable-bluez to really remove bluetooth support quintela
2009-06-23 14:14 ` [Qemu-devel] [PATCH 03/15] rename usb variable to usb host quintela
2009-06-23 14:14 ` [Qemu-devel] [PATCH 04/15] protect with CONFIG_BRLAPI quintela
2009-06-23 14:14 ` [Qemu-devel] [PATCH 05/15] Make --disable-usb to really remove usb support quintela
2009-06-23 17:29 ` [Qemu-devel] " Jan Kiszka
2009-06-23 14:14 ` [Qemu-devel] [PATCH 06/15] Add --disable-smb to remove smb directories support quintela
2009-06-23 17:25 ` Jan Kiszka [this message]
2009-06-23 14:14 ` [Qemu-devel] [PATCH 07/15] add option to remove scsi support quintela
2009-06-23 14:14 ` [Qemu-devel] [PATCH 08/15] add option to disable wmware devices quintela
2009-06-23 14:14 ` [Qemu-devel] [PATCH 09/15] ssi bus is only used on the arm platform quintela
2009-06-23 14:14 ` [Qemu-devel] [PATCH 10/15] move i2c devices only used in arm devices to arm target quintela
2009-06-23 16:20 ` Blue Swirl
2009-06-23 14:14 ` [Qemu-devel] [PATCH 11/15] sd flash is only used in arm devices quintela
2009-06-23 16:19 ` Blue Swirl
2009-06-23 16:27 ` [Qemu-devel] " Juan Quintela
2009-06-23 16:43 ` Blue Swirl
2009-06-23 19:11 ` [Qemu-devel] " Anthony Liguori
2009-06-23 14:14 ` [Qemu-devel] [PATCH 12/15] move m48t59 and ecc driver to ppc and sparc, that are the targets that use it quintela
2009-06-23 16:20 ` Blue Swirl
2009-06-23 14:14 ` [Qemu-devel] [PATCH 13/15] nand and ecc are only used on arm and cris argets quintela
2009-06-23 16:21 ` Blue Swirl
2009-06-23 14:14 ` [Qemu-devel] [PATCH 14/15] enable isa_mmio only in the platforms that use it: ppc, arm, mips and sparc quintela
2009-06-23 16:21 ` Blue Swirl
2009-06-23 14:14 ` [Qemu-devel] [PATCH 15/15] add option to disable virtio drivers quintela
2009-06-23 19:09 ` [Qemu-devel] [RFC PATCH 00/15] Be able to compile out not needed options Anthony Liguori
2009-06-24 18:17 ` [Qemu-devel] " Juan Quintela
2009-06-24 18:31 ` Anthony Liguori
2009-06-29 9:45 ` Gerd Hoffmann
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=4A411017.4030008@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.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 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).