From 34bb743ce3e24dde8b8fccdccb8f9c443fb2cd6f Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 29 Jun 2012 12:41:47 -0700 Subject: Add uint64_t mid field to the files_struct. Ensure it is initialized so we know what mid created this file. --- source3/include/vfs.h | 1 + source3/smbd/files.c | 1 + 2 files changed, 2 insertions(+) (limited to 'source3') 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; } -- cgit