vfs_fruit: Time Machine/FULLSYNC: add mDNS/DNS-SD advertisement

Ralph Böhme slow at samba.org
Wed Jul 19 07:25:33 UTC 2017

On Wed, Jul 19, 2017 at 12:04:42AM -0700, Omri Mor wrote:
> > On Jul 18, 2017, at 23:22, Volker Lendecke <Volker.Lendecke at SerNet.DE> wrote:
> > 
> >> On Tue, Jul 18, 2017 at 10:43:11PM +0200, Volker Lendecke via samba-technical wrote:
> >> I guess that's too late, we need to produce this list when we start and register
> >> the services.
> > 
> > We can never change announcements again once they were done?
> They can be changed, but it’s more difficult (particularly with Avahi, it
> seems). Since there really isn’t a reason for announcements to change as long
> as share options aren’t changed, it’s probably best to stay simple and *not*
> modify them.
> I’m parsing through the code to figure out at what point VFS modules are
> initialized. From my understanding, a module aren’t loaded and initialized
> until there is a connection to a share that requires the module (i.e. lazy
> loading): make_connection_snum() => smbd_vfs_init() => vfs_init_custom()
> vfs_init_custom() => vfs_find_backend_entry(); if the module is already
> loaded, this finds it and sets up the connection to use it, else =>
> smb_load_module() => ... => load_module() => dlsym(), MODULE_init() =>
> vfs_find_backend_entry(); loads the module, initializes it, and then sets up
> the connection

afair: correct.

Setting "preload modules" should work, requires an absolute path to the
module. Would that be good enough?


More information about the samba-technical mailing list