diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-05-20 08:15:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:08:10 -0500 |
commit | 9ef33f5f5c786b83311ca088357fb2f0aa72fc9e (patch) | |
tree | 66335dced1641119f94e6c656dd1ccc673218d0c /source4/ntvfs/simple/svfs.h | |
parent | 0dcecc314899b6f36e9215e0b3881220062ba4f9 (diff) | |
download | samba-9ef33f5f5c786b83311ca088357fb2f0aa72fc9e.tar.gz samba-9ef33f5f5c786b83311ca088357fb2f0aa72fc9e.tar.bz2 samba-9ef33f5f5c786b83311ca088357fb2f0aa72fc9e.zip |
r15734: This is a major change to the NTVFS subsystem:
- to use a struct ntvfs_handle instead of a uint16_t fnum.
(to make it independend from the frontend protocol)
- the allocation of handles now is provided by the frontend
(smbsrv_*) via callbacks and not by each backend module
- this also makes sure that file handles are only passed
to the ntvfs subsystem when the tcon and session matches,
so modules can rely on this and need to check this.
- this allows multiple modules in the ntvfs module chain
to allocate file handles. This can be used for virtual
files like "\\$Extend\\$Quota:$Q:$INDEX_ALLOCATION"...
- also this will make SMB2 with 128 bit file handles possible
metze
(This used to be commit 287fc1c22d670f6e568014b420f7f4cb31dc7958)
Diffstat (limited to 'source4/ntvfs/simple/svfs.h')
-rw-r--r-- | source4/ntvfs/simple/svfs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/ntvfs/simple/svfs.h b/source4/ntvfs/simple/svfs.h index 74e7b6c452..e5ad3b95d9 100644 --- a/source4/ntvfs/simple/svfs.h +++ b/source4/ntvfs/simple/svfs.h @@ -1,5 +1,7 @@ struct svfs_private { + struct ntvfs_module_context *ntvfs; + /* the base directory */ char *connectpath; @@ -24,6 +26,7 @@ struct svfs_dir { struct svfs_file { struct svfs_file *next, *prev; int fd; + struct ntvfs_handle *handle; char *name; }; |