mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3:smbd: prepare delay_for_oplock() for directories
We don't support directory leases yet, so it should be an noop for now. The point is that we want to call delay_for_oplock(oplock_request=NO_OPLOCK) for directories soon. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
0bfdae92db
commit
0a8619c845
@ -2745,6 +2745,17 @@ static NTSTATUS delay_for_oplock(files_struct *fsp,
|
||||
*poplock_type = NO_OPLOCK;
|
||||
*pgranted = 0;
|
||||
|
||||
if (fsp->fsp_flags.is_directory) {
|
||||
/*
|
||||
* No directory leases yet
|
||||
*/
|
||||
SMB_ASSERT(oplock_request == NO_OPLOCK);
|
||||
if (have_sharing_violation) {
|
||||
return NT_STATUS_SHARING_VIOLATION;
|
||||
}
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
if (oplock_request == LEASE_OPLOCK) {
|
||||
if (lease == NULL) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user