ofir vainshtein has uploaded this change for review.
Replace assert with a check for memory availability in readdir.
The assert ensuring `mem_avail >= pos_start` has been replaced with an explicit check. If there isn't enough memory, a warning is logged, and the function bails out to the failure path. This prevents potential issues in production builds where asserts are often disabled.
Change-Id: Idc8fead167910b65d0fff47eafd1643f1db70355
Signed-off-by: Ofir Vainshtein <ofirvins@google.com>
---
M src/Protocols/NFS/nfs4_op_readdir.c
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/48/1238448/1
To view, visit change 1238448. To unsubscribe, or for help writing mail filters, visit settings.