Get Samba version or capability information from Windows
Volker.Lendecke at SerNet.DE
Mon Jan 21 15:45:59 GMT 2008
On Mon, Jan 21, 2008 at 04:34:51PM +0100, Corinna Vinschen wrote:
> So, what exactly shall I ignore, just your last comment or your request
> to put extra_info on the stack?
Tough call. I seriously don't have a full answer to this.
The "right" thing is not to add global variables. If you
need to cache it depends on the cost it has to compute that
info. If it is potentially expensive, we nowadays have the
memcache (see include/memcache.h) as a place where you can
store this kind of info. If it's relatively cheap or called
infrequently, then compute it on demand.
I know that lib/version.c does not really fit into that
argument, I just did not have the time yet to see whether it
would be worth removing the global in version.c.
Another question that came up on irc this morning: Do you
happen to know whether you can pass arbitrary IOCTL calls
from the NT user space to a CIFS server? At one point I have
tried that, but at least from a Win32 app only very few
special IOCTLs were allowed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080121/d9c33c02/attachment.bin
More information about the samba-technical