diff options
author | Jeremy Allison <jra@samba.org> | 2012-06-29 12:41:47 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-06-30 02:23:39 +0200 |
commit | 34bb743ce3e24dde8b8fccdccb8f9c443fb2cd6f (patch) | |
tree | 1e443089d57fbe394b8d4ad4c6585f81da8b6785 /source3 | |
parent | 84f29b814d1786147020867214974deefbb8412a (diff) | |
download | samba-34bb743ce3e24dde8b8fccdccb8f9c443fb2cd6f.tar.gz samba-34bb743ce3e24dde8b8fccdccb8f9c443fb2cd6f.tar.bz2 samba-34bb743ce3e24dde8b8fccdccb8f9c443fb2cd6f.zip |
Add uint64_t mid field to the files_struct.
Ensure it is initialized so we know what mid created this file.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/vfs.h | 1 | ||||
-rw-r--r-- | source3/smbd/files.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 754d4e4d2a..be4399feb8 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -227,6 +227,7 @@ typedef struct files_struct { bool is_sparse; struct smb_filename *fsp_name; uint32_t name_hash; /* Jenkins hash of full pathname. */ + uint64_t mid; /* Mid of the operation that created us. */ struct vfs_fsp_data *vfs_extension; struct fake_file_handle *fake_file_handle; diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 0929d994a8..390718f83e 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -126,6 +126,7 @@ NTSTATUS file_new(struct smb_request *req, connection_struct *conn, fsp_fnum_dbg(fsp), (unsigned int)sconn->num_files)); if (req != NULL) { + fsp->mid = req->mid; req->chain_fsp = fsp; } |