Bug 1386714

Summary: BAT: READDIR returns NFS4ERR_BAD_COOKIE when file with that cookie is removed
Product: [Retired] nfs-ganesha Reporter: Soumya Koduri <skoduri>
Component: FSALAssignee: Daniel Gryniewicz <dang>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.4CC: dang, ffilz, jthottan, kkeithle, mbenjamin, ndevos, pasik
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-22 15:28:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
oracle_test_pkttrace none

Description Soumya Koduri 2016-10-19 13:49:29 UTC
Created attachment 1212154 [details]
oracle_test_pkttrace

Description of problem:

From the tests using solaris client, it was found that READDIR returns ERR_BAD_COOKIE when the file entry with that cookie was removed. 

Dan mentioned that it is a proper error to be returned for NFSv3 but not for NFSv4(.x) as per RFC.

Attached the pkt trace for reference.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Soumya Koduri 2016-10-19 14:04:35 UTC
FYI - these were the test failures reported (from the pkt trace)

619 readdir, cookie == 8572193412744277082
620 readdir fails BAD_COOKIE

577 has previous readdir reply
        file.3: 8572193412744277082

4054 open fails with INVAL

Comment 2 Daniel Gryniewicz 2016-10-19 14:31:06 UTC
I believe the v4 RFC to be a typo, and this is a proper return value there as well.

Potential fix here:
 https://review.gerrithub.io/298859