fsp->is_directory = false;//from->is_directory;
fsp->aio_write_behind = false;//from->aio_write_behind;
- ok = set_file_oplock(fsp, e->op_type);
+ fsp->oplock_type = e->op_type;
+
sharemode_lock->data->modified = true;
e->pid = messaging_server_id(op->connection->sconn->msg_ctx);
return status;
}
+ ok = set_file_oplock(fsp, e->op_type);
+
+ DLIST_ADD(conn->sconn->files, fsp);
+ conn->sconn->num_files += 1;
+
+ DEBUG(5,("allocated file structure, fnum = %d (%d used)\n",
+ fsp->fnum, (unsigned int)conn->sconn->num_files));
+
+ smb1req->chain_fsp = fsp;
+
DEBUG(0, ("OBNOX - durable_reconnect: opened file (%s:%s)\n", __location__, __FUNCTION__));
/* - release the sharemode lock: this writes the changes */