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