Add uint64_t mid field to the files_struct.
authorJeremy Allison <jra@samba.org>
Fri, 29 Jun 2012 19:41:47 +0000 (12:41 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 30 Jun 2012 00:23:39 +0000 (02:23 +0200)
Ensure it is initialized so we know what mid created this file.

source3/include/vfs.h
source3/smbd/files.c

index 754d4e4d2a27ae0e25561f34126d6dee8de3ffc9..be4399feb8eb0b26ec13648ec20d14a073596292 100644 (file)
@@ -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;
index 0929d994a8bbbbad6059f3a60a9047089d87af26..390718f83ed99b5e7158236b09da15268f3cdb79 100644 (file)
@@ -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;
        }