mirror of
https://github.com/samba-team/samba.git
synced 2025-03-05 20:58:40 +03:00
smbstatus: delete wrong EXCLUSIVE+BATCH oplock
It is not possible to have an EXCLUSIVE+BATCH oplock, because a BATCH oplock includes an EXCLUSIVE oplock. Therefore, an EXCLUSIVE+BATCH-Oplock and a BATCH-Oplock are the same thing. Signed-off-by: Jule Anger <janger@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
82d931d23d
commit
6412c39bbf
@ -179,13 +179,10 @@ static int print_share_mode(struct file_id fid,
|
||||
d_printf("RDONLY ");
|
||||
}
|
||||
|
||||
if((e->op_type & (EXCLUSIVE_OPLOCK|BATCH_OPLOCK)) ==
|
||||
(EXCLUSIVE_OPLOCK|BATCH_OPLOCK)) {
|
||||
d_printf("EXCLUSIVE+BATCH ");
|
||||
if (e->op_type & BATCH_OPLOCK) {
|
||||
d_printf("BATCH ");
|
||||
} else if (e->op_type & EXCLUSIVE_OPLOCK) {
|
||||
d_printf("EXCLUSIVE ");
|
||||
} else if (e->op_type & BATCH_OPLOCK) {
|
||||
d_printf("BATCH ");
|
||||
} else if (e->op_type & LEVEL_II_OPLOCK) {
|
||||
d_printf("LEVEL_II ");
|
||||
} else if (e->op_type == LEASE_OPLOCK) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user