Bug 1386714 - BAT: READDIR returns NFS4ERR_BAD_COOKIE when file with that cookie is removed
Summary: BAT: READDIR returns NFS4ERR_BAD_COOKIE when file with that cookie is removed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: nfs-ganesha
Classification: Retired
Component: FSAL
Version: 2.4
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
Assignee: Daniel Gryniewicz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-19 13:49 UTC by Soumya Koduri
Modified: 2019-11-22 15:28 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-22 15:28:05 UTC


Attachments (Terms of Use)
oracle_test_pkttrace (17.78 MB, application/octet-stream)
2016-10-19 13:49 UTC, Soumya Koduri
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.