qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Peter Wu <peter@lekensteyn.nl>, qemu-devel@nongnu.org
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [Qemu-devel] slirp-smb broken with Samba 4.1
Date: Mon, 03 Nov 2014 15:58:35 +0300	[thread overview]
Message-ID: <54577BFB.6040207@msgid.tls.msk.ru> (raw)
In-Reply-To: <1656709.LYGoHYHcpg@al>

03.11.2014 15:22, Peter Wu wrote:
[]
> As an aside, would it be possible to override the samba binary at runtime,
> without compiling? Either an envvar (SMBD) or an option (-net
> user,smb=...,smbd=...).

The whole thing needs to be rewritten to use a shell script to create
smb.conf and to call smbd.  It's something I wanted to do for very long
time, the only question is where to put this script so a user can
easily customize it.  In debian we have a rule that anything in /etc
is a conffile, and it gets upgraded (when upgrading the corresponding
package) only if it hasn't been modified by the user.  Everything else
(in /usr/lib, /usr/share etc) gets upgraded unconditionally.  So maybe
storing it in /etc/qemu/run-smbd.sh or somehting like that makes sense.
The rest is a shell code to create smb.conf in a temp dir -- the same
as current code does in qemu, plus all your additions, plus whatever
else might be needed (that script can even query which samba version
is in use and enable one or another option).

But this is definitely not a 2.2 matherial.

Thanks,

/mjt

  reply	other threads:[~2014-11-03 12:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-24 16:55 [Qemu-devel] slirp-smb broken with Samba 4.1 Jan Kiszka
2014-10-24 18:29 ` Michael Tokarev
2014-10-24 19:58   ` Michael Tokarev
2014-10-24 20:43     ` Michael Tokarev
2014-10-25  7:23       ` Jan Kiszka
2014-11-03 12:22 ` Peter Wu
2014-11-03 12:58   ` Michael Tokarev [this message]
2014-11-03 19:46     ` [Qemu-devel] Improved shared folders support (was: Re: slirp-smb broken with Samba 4.1) Peter Wu
2014-11-04  6:13       ` [Qemu-devel] Improved shared folders support Michael Tokarev
2014-11-05 17:29         ` Peter Wu
2014-11-04 22:53   ` [Qemu-devel] slirp-smb broken with Samba 4.1 Peter Wu

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=54577BFB.6040207@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=jan.kiszka@siemens.com \
    --cc=peter@lekensteyn.nl \
    --cc=qemu-devel@nongnu.org \
    /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).