summaryrefslogtreecommitdiff
path: root/source4/ntvfs/smb2/vfs_smb2.c
AgeCommit message (Collapse)AuthorFilesLines
2009-09-08s4: fixed some shadowed variable warningsAndrew Tridgell1-3/+3
2009-05-20Have ntvfs_connect() accept union smb_tcon *tcon instead of char* sharenameSam Liddicott1-2/+29
This change brings ntvfs_connect into compliance with other ntvfs functions which take an ntvfs module, an ntvfs request and an smb io union. It now becomes the responsibility of ntvfs modules to examine tcon->generic.level themselves and derive the share name and any other options directly; e.g. const char *sharename; switch (tcon->generic.level) { case RAW_TCON_TCON: sharename = tcon->tcon.in.service; break; case RAW_TCON_TCONX: sharename = tcon->tconx.in.path; break; case RAW_TCON_SMB2: default: return NT_STATUS_INVALID_LEVEL; } if (strncmp(sharename, "\\\\", 2) == 0) { char *p = strchr(sharename+2, '\\'); if (p) { sharename = p + 1; } } service.c smbsrv_tcon_backend() is called before ntvfs_connect and fills in some of the tcon->..out values. For the case of RAW_TCON_TCONX, it filles out tcon->tconx.out.tid and tcon->tconx.out.options For the case of RAW_TCON_TCON it fills out tcon->tcon.out.tid and tcon->tcon.out.max_xmit Thus the ntvfs_connect function for vfs modules may override these values if desired, but are not required to. ntvfs_connect functions are required to fill in the tcon->tconx.out.*_type fields, for RAW_TCON_TCONX, perhaps something like: if (tcon->generic.level == RAW_TCON_TCONX) { tcon->tconx.out.fs_type = ntvfs->ctx->fs_type; tcon->tconx.out.dev_type = ntvfs->ctx->dev_type; } Signed-off-by: Sam Liddicott <sam@liddicott.com> (I fixed the ntvfs_connect() in the smb_server/smb2/ and the RAW_TCON_SMB2 switch case in the modules) Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-02-02s4:ntvfs/smb2: s/private/pStefan Metzmacher1-39/+39
metze
2008-11-02Remove use of global_loadparm for SMB2 client connections.Jelmer Vernooij1-1/+2
2008-11-01Remove another use of global_loadparm.Jelmer Vernooij1-1/+3
2008-11-01Remove another use of global_loadparm.Jelmer Vernooij1-1/+3
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij1-1/+1
2008-05-30implemented client side SMB2 signingAndrew Tridgell1-2/+4
This doessn't work against Windows yet, and I've submitted a WSPP request for clarification of the docs to try and find out why. Meanwhile this is no worse than what we had, as it only gets used when the server demands signing, and we didn't work then anyway. (This used to be commit b788096add3586d7277efcd3bf5ca7f3a604cb7a)
2008-05-19added SMB2 proxying of rmdirAndrew Tridgell1-1/+12
(This used to be commit 1e0c24b2760f2a632333b51710cd9581f0cee851)
2008-05-19added mkdir to SMB2 proxyAndrew Tridgell1-1/+8
(This used to be commit 1323aab11fbf346e19c4cef227d727ddfcaa7d60)
2008-05-16added SMB2 proxying for unlinkAndrew Tridgell1-427/+43
(This used to be commit a5459bd88092863668db199953458fe97162240c)
2008-05-15added handlers for connect, search_first and fsinfo. Andrew Tridgell1-152/+225
Directory listing in smbclient now works (This used to be commit 8007342061d77eb711af0652ecd38aec0d3cc9d1)
2008-05-15started new vfs_smb2 moduleAndrew Tridgell1-0/+1137
This new module is based on the vfs_cifs module. The idea is to create a backend which maps SMB requests to a SMB2 server. This will allow existing test suites for SMB to be run against our SMB2 client and server code. It will also help validate our SMB2 client library, probably leading to some API changes to make it flexible enough (This used to be commit 6ea8295a64ff5425def11b0d1cd988ef000320be)