Suhas Athani has uploaded this change for review.

View Change

OPEN: only log delegate_type for CLAIM_PREVIOUS

open_claim4_u is a union, and delegate_type is only valid when the
claim is CLAIM_PREVIOUS. For other claims it shares memory with
another member. For CLAIM_NULL that member is the file name, so the
log printed the name length as the delegation type (for example
"Delegate Type = 8" for an 8 character name), which is misleading.

Print delegate_type only when the claim is CLAIM_PREVIOUS.

No functional change: only the debug log was affected.

Change-Id: If21b353caa2ecf45617a999b271bbc646bfa6cb8
Signed-off-by: Suhas Athani <Suhas.Athani@ibm.com>
---
M src/Protocols/NFS/nfs4_op_open.c
1 file changed, 7 insertions(+), 2 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/31/1253631/1

To view, visit change 1253631. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: If21b353caa2ecf45617a999b271bbc646bfa6cb8
Gerrit-Change-Number: 1253631
Gerrit-PatchSet: 1
Gerrit-Owner: Suhas Athani <Suhas.Athani@ibm.com>