freeze has uploaded this change for review.

View Change

FSAL_CEPH: make consistency for create_handle

In commit 101cfb8, create_handle would check the handle buffer
with struct ceph_handle_key instead ceph_host_handle.

ceph_handle_key contains export_id and ceph_host_handle.

The export id would be used in FSAL_CEPH (putfh in nfs4/
FhandleToCache in nfs3).
We should make the handle buffer consistency with ceph_handle_key
to avoid EINVAL with create_handle.

So make handle_to_wire consider the later struct ceph_handle_key,
that also make create_handle would check the same struct.

That would fix the regression with 101cfb8 with nfs3 readdir case.

Change-Id: I4a55ff6a470fb0922b82b6f24a1ba20def4b7e95
Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
---
M src/FSAL/FSAL_CEPH/handle.c
1 file changed, 10 insertions(+), 7 deletions(-)

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

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

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I4a55ff6a470fb0922b82b6f24a1ba20def4b7e95
Gerrit-Change-Number: 507499
Gerrit-PatchSet: 1
Gerrit-Owner: freeze <freeze.bilsted@gmail.com>
Gerrit-MessageType: newchange