static NTSTATUS odb_tdb_open_file(struct odb_lock *lck,
void *file_handle, const char *path,
int *fd, NTTIME open_write_time,
+ uint32_t create_action,
bool allow_level_II_oplock,
uint32_t oplock_level, uint32_t *oplock_granted)
{
}
}
+ if (lck->file.num_entries == 0) {
+ lck->file.create_action = create_action;
+ }
+
/* it doesn't conflict, so add it to the end */
lck->file.entries = talloc_realloc(lck, lck->file.entries,
struct opendb_entry,
status = odb_open_file(lck, f->handle, name->full_name,
&f->handle->fd, name->dos.write_time,
- allow_level_II_oplock,
+ allow_level_II_oplock, was_created,
oplock_level, &oplock_granted);
talloc_free(lck);
if (!NT_STATUS_IS_OK(status)) {