Liujun (A)
2013-Feb-26 07:59 UTC
[Samba] 答复: how to dynamic update or refresh vfs_fn_pointers and ntvfs_ops stacks
[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. ???: Liujun (A) ????: 2013?2?25? 20:59 ???: 'samba at lists.samba.org' ??: how to dynamic update or refresh vfs_fn_pointers and ntvfs_ops stacks When review vfs plugin architecture, the vfs hander or ntvfs hander is initial by tree connect, but when dynamic change the the share configure, how to change or update the already constructed handler .
Andrew Bartlett
2013-Feb-27 03:24 UTC
[Samba] 答复: how to dynamic update or refresh vfs_fn_pointers and ntvfs_ops stacks
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.G'day, 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