Get Samba version or capability information from Windows

Corinna Vinschen corinna at
Mon Jan 21 16:10:52 GMT 2008

On Jan 21 16:45, Volker Lendecke wrote:
> 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.

Ok.  It looks a rather unexpensive operation, given that it's all
numbers and only one string which is precomputed anyway so I go
for the stack.

> 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?



More information about the samba-technical mailing list