[PATCH] pass smb_tcon to ntvfs_connect and use ntvfs_map_connect()

Sam Liddicott sam at liddicott.com
Fri May 8 13:59:49 GMT 2009


Here's a first cut, applies to the previous patch.

I don't like the ntvfs_map_connect technique, I'm trying the alternative
which requires many of the vfs *_connect functions doing their own tcon
level checking, though...

I've still got to deal with con->tconx.out.options somewhere other than
make_connection_scfg() - this will be easier if each vfs's *_connect()
does it's own tcon level checking...




Let ntvfs module connect functions take the smb_tcon instead of
just the share name

adds ntvfs_map_connect() to convert tcon to a generic form

Have each ntvfs module use ntvfs_map_connect() in order to get
the share name

Signed-off-by: Sam Liddicott <sam at liddicott.com>
---
 source4/libcli/raw/interfaces.h               |   18 +++++-
 source4/ntvfs/cifs/vfs_cifs.c                 |   12 +++-
 source4/ntvfs/cifs_posix_cli/vfs_cifs_posix.c |   12 +++-
 source4/ntvfs/ipc/vfs_ipc.c                   |   12 +++-
 source4/ntvfs/nbench/vfs_nbench.c             |    5 +-
 source4/ntvfs/ntvfs.h                         |    2 +-
 source4/ntvfs/ntvfs_generic.c                 |   84
+++++++++++++++++++++++++
 source4/ntvfs/ntvfs_interface.c               |    9 ++-
 source4/ntvfs/posix/vfs_posix.c               |   12 +++-
 source4/ntvfs/print/vfs_print.c               |    9 +++-
 source4/ntvfs/simple/vfs_simple.c             |   12 +++-
 source4/ntvfs/smb2/vfs_smb2.c                 |   13 +++-
 source4/ntvfs/unixuid/vfs_unixuid.c           |    4 +-
 source4/smb_server/smb/reply.c                |   27 ++-------
 14 files changed, 191 insertions(+), 40 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2820dd0a32c2025f5c428c10db749c0ab06c7381.diff
Type: text/x-patch
Size: 18669 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090508/cd191a5d/2820dd0a32c2025f5c428c10db749c0ab06c7381.bin


More information about the samba-technical mailing list