summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/vfs.h1
-rw-r--r--source3/smbd/files.c1
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;
}