[Samba] 答复: how to dynamic update or refresh vfs_fn_pointers and ntvfs_ops stacks

Andrew Bartlett abartlet at samba.org
Tue Feb 26 20:24:59 MST 2013

On Tue, 2013-02-26 at 07:59 +0000, Liujun (A) wrote:
> [test]
> comment = VFS TEST
> path = /data
> writeable = yes
> browseable = yes
> vfs objects = example:example1 example example:test
> example1: parameter = 1
> example: parameter = 5
> test: parameter = 7
> for example, when change the example1: parameter = 2, how to change or update the already constructed handler.


As long as you query your parameters at runtime (rather than stashing
away the information at init time) then the values should change when
the smb.conf is reloaded, eg with a kill -HUP.

This applies in the smbd stack, not in the ntvfs stack, which does not
support parameter reloading. 

Andrew Bartlett

Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org

More information about the samba mailing list