diff options
author | Jeremy Allison <jra@samba.org> | 2011-01-25 13:49:01 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-01-25 13:49:01 -0800 |
commit | 76418e23bcde1eba4dfefbc10c51c083567a52e6 (patch) | |
tree | 2a6e9e2139e4e532d6f2bb177572f79950e17a22 /source3/include | |
parent | 6e2263749ab108baf7543a651123041427af96db (diff) | |
download | samba-76418e23bcde1eba4dfefbc10c51c083567a52e6.tar.gz samba-76418e23bcde1eba4dfefbc10c51c083567a52e6.tar.bz2 samba-76418e23bcde1eba4dfefbc10c51c083567a52e6.zip |
Add name_hash to files_struct. Set within fsp_set_smb_fname().
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 2 | ||||
-rw-r--r-- | source3/include/smb.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 29dbcc9763..fafcf6be52 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4764,6 +4764,8 @@ files_struct *file_fsp(struct smb_request *req, uint16 fid); NTSTATUS dup_file_fsp(struct smb_request *req, files_struct *from, uint32 access_mask, uint32 share_access, uint32 create_options, files_struct *to); +NTSTATUS file_name_hash(connection_struct *conn, + const char *name, uint32_t *p_name_hash); NTSTATUS fsp_set_smb_fname(struct files_struct *fsp, const struct smb_filename *smb_fname_in); diff --git a/source3/include/smb.h b/source3/include/smb.h index 1a76691a44..6cfb6307d0 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -346,6 +346,7 @@ typedef struct files_struct { bool posix_open; bool is_sparse; struct smb_filename *fsp_name; + uint32_t name_hash; /* Jenkins hash of full pathname. */ struct vfs_fsp_data *vfs_extension; struct fake_file_handle *fake_file_handle; |