Matt Benjamin has uploaded this change for review.

View Change

FSAL_RGW: allow readdir() to continue past damaged objects

The current FSAL_RGW readdir loop performs a lookup on each
object returned from enumeration, as expected, but stops
enumeration if any lookup fails.

In order to avoid truncated listings in the presence of (e.g.)
a damaged bucket or leaf object, log a warning in the failed
lookup case, but do not terminate the readdir.

Change-Id: Iaf07b6853a3d81ba150d241089f45605ec88920a
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
---
M src/FSAL/FSAL_RGW/handle.c
1 file changed, 9 insertions(+), 2 deletions(-)

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

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

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Iaf07b6853a3d81ba150d241089f45605ec88920a
Gerrit-Change-Number: 507249
Gerrit-PatchSet: 1
Gerrit-Owner: Matt Benjamin <mbenjamin@redhat.com>
Gerrit-MessageType: newchange