Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReadDirPlus doesn't return all pages when directory has too much content #26

Closed
liiri opened this issue Mar 19, 2021 · 4 comments
Closed

Comments

@liiri
Copy link

liiri commented Mar 19, 2021

To reproduce:

step 1 - get content

cd /home/git
git clone https://github.com/Tieqiang/dc-heacth
ls dc-heacth/src/main/java/com/dchealth/VO | wc -l
# expected output:  65

step 2 - run osview server

go run ./example/osview /home/git

step 3 - mount nfs and list dir

mkdir /tmp/git
mount -o port=50184,mountport=50184 -t nfs localhost:/ /tmp/git
ls /tmp/git/dc-heacth/src/main/java/com/dchealth/VO | wc -l
# actual output is 27, not the whole 65

After #25 was merged I'm no longer seeing stale cookie errors, but still not all pages are retrieved.

@willscott
Copy link
Owner

@liiri can you confirm if this is resolved by #29

@liiri
Copy link
Author

liiri commented Mar 22, 2021

@willscott I re-run the scenario with latest revision, am still not getting full directory listing. wc -l for the specific directory returns 24. Indeed I'm using OSX.

@willscott
Copy link
Owner

Any relevant logs from the server?
If you could use tcpdump or wireshark to capture the readdirplus request and response packets that would be very helpful since I was able to see the full directory on my mac.

@liiri
Copy link
Author

liiri commented Mar 23, 2021

Nevermind, I re-run it now in debugger and it works as expected :)

@liiri liiri closed this as completed Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants