Comments (7)
Hi,
well it's been 2 years from active delevoplent of the client.
Why do you need the READDIRPLUS implementation ?
I rly don't remember what are the correct attributes now.
2015-11-12 17:42 GMT+01:00 roman-himmelreich-sp [email protected]:
Hi,
There are two functions which list folder items: READDIR and READDIRPLUS
Basically, READDIR only returns paths, READDIRPLUS returnes all other
attributes.
When calling READDIRPLUS, there are two extra paramters that I can't
understand how to use:dircount
The maximum number of bytes of directory information to be returned. This
number does not include the size of the attributes and file handle portions
of the result.
maxcount
The maximum size of the READDIRPLUS3resok structure, in bytes. The size
must include all XDR overhead. The server may return fewer than maxcount
bytes of data.No matter what I try, I can't seem to get it right.
Did anybody ever call this function succesfully?—
Reply to this email directly or view it on GitHub
#2.
from nfsclient.
Hi,
thank you for your reply.
I need ReadDirPlus because we are building a Crawler for NFS.
Using ReadDir we would need to send a seperate request per item - to find out if its a folder/file and get the other attributes.
ReadDirPlus gets the list of items with the attributes in a single call.
I see there is an implementation for it, but you did not use it in the client.
The problem seems to be in the decoding and reading of the reply of ReadDirPlus. It returns OK and then somewhere during the XDR parsing of FolderEntry it fails.
If you could point me to where I can find the exact structure of the result that FolderEntry is trying to parse, maybe I can get it working.
I've tried comparing the parsing to the native libnfs code, but there they work with structs, the xdrDecoding is different because we need to know the order of the fields, as I understand...
thanks for any help in advance!
Roman.
Sent from BlueMail
On Nov 12, 2015, 8:19 PM, at 8:19 PM, DeCoRawr [email protected] wrote:
Hi,
well it's been 2 years from active delevoplent of the client.
Why do you need the READDIRPLUS implementation ?
I rly don't remember what are the correct attributes now.
2015-11-12 17:42 GMT+01:00 roman-himmelreich-sp
[email protected]:Hi,
There are two functions which list folder items: READDIR and
READDIRPLUS
Basically, READDIR only returns paths, READDIRPLUS returnes all other
attributes.
When calling READDIRPLUS, there are two extra paramters that I can't
understand how to use:dircount
The maximum number of bytes of directory information to be returned.
This
number does not include the size of the attributes and file handle
portions
of the result.
maxcount
The maximum size of the READDIRPLUS3resok structure, in bytes. The
size
must include all XDR overhead. The server may return fewer than
maxcount
bytes of data.No matter what I try, I can't seem to get it right.
Did anybody ever call this function succesfully?—
Reply to this email directly or view it on GitHub
#2.
Reply to this email directly or view it on GitHub:
#2 (comment)
from nfsclient.
Hi,
Eventually I found the problem,
You were missing one Boolean read from the XDR stream
and then the other read attempts were out of sync and everything failed.
READDIRPLUS gives you the contents of a folder with item attributes - in one call.
thanks for the source, it was really helpful!
From: DeCoRawr [email protected]
Sent: Thursday, November 12, 2015 8:19 PM
To: DeCoRawr/NFSClient
Cc: Roman Himmelreich
Subject: Re: [NFSClient] Using READDIRPLUS (#2)
Hi,
well it's been 2 years from active delevoplent of the client.
Why do you need the READDIRPLUS implementation ?
I rly don't remember what are the correct attributes now.
2015-11-12 17:42 GMT+01:00 roman-himmelreich-sp [email protected]:
Hi,
There are two functions which list folder items: READDIR and READDIRPLUS
Basically, READDIR only returns paths, READDIRPLUS returnes all other
attributes.
When calling READDIRPLUS, there are two extra paramters that I can't
understand how to use:dircount
The maximum number of bytes of directory information to be returned. This
number does not include the size of the attributes and file handle portions
of the result.
maxcount
The maximum size of the READDIRPLUS3resok structure, in bytes. The size
must include all XDR overhead. The server may return fewer than maxcount
bytes of data.No matter what I try, I can't seem to get it right.
Did anybody ever call this function succesfully?Reply to this email directly or view it on GitHub
#2.
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-156189553.
from nfsclient.
uf i totaly forgot about this. :S
could you tell me where was this boolean missing ?
2015-12-08 18:11 GMT+01:00 roman-himmelreich-sp [email protected]:
Hi,
Eventually I found the problem,
You were missing one Boolean read from the XDR stream
and then the other read attempts were out of sync and everything failed.
READDIRPLUS gives you the contents of a folder with item attributes - in
one call.thanks for the source, it was really helpful!
From: DeCoRawr [email protected]
Sent: Thursday, November 12, 2015 8:19 PM
To: DeCoRawr/NFSClient
Cc: Roman Himmelreich
Subject: Re: [NFSClient] Using READDIRPLUS (#2)Hi,
well it's been 2 years from active delevoplent of the client.
Why do you need the READDIRPLUS implementation ?
I rly don't remember what are the correct attributes now.
2015-11-12 17:42 GMT+01:00 roman-himmelreich-sp <[email protected]
:
Hi,
There are two functions which list folder items: READDIR and READDIRPLUS
Basically, READDIR only returns paths, READDIRPLUS returnes all other
attributes.
When calling READDIRPLUS, there are two extra paramters that I can't
understand how to use:dircount
The maximum number of bytes of directory information to be returned. This
number does not include the size of the attributes and file handle
portions
of the result.
maxcount
The maximum size of the READDIRPLUS3resok structure, in bytes. The size
must include all XDR overhead. The server may return fewer than maxcount
bytes of data.No matter what I try, I can't seem to get it right.
Did anybody ever call this function succesfully?Reply to this email directly or view it on GitHub
#2.Reply to this email directly or view it on GitHub<
https://github.com/DeCoRawr/NFSClient/issues/2#issuecomment-156189553>.—
Reply to this email directly or view it on GitHub
#2 (comment).
from nfsclient.
Sure!
I will send it to you once I'm n front of it...
On Dec 8, 2015, 7:35 PM, at 7:35 PM, DeCoRawr [email protected] wrote:
uf i totaly forgot about this. :S
could you tell me where was this boolean missing ?
2015-12-08 18:11 GMT+01:00 roman-himmelreich-sp
[email protected]:Hi,
Eventually I found the problem,
You were missing one Boolean read from the XDR stream
and then the other read attempts were out of sync and everything
failed.READDIRPLUS gives you the contents of a folder with item attributes -
in
one call.thanks for the source, it was really helpful!
From: DeCoRawr [email protected]
Sent: Thursday, November 12, 2015 8:19 PM
To: DeCoRawr/NFSClient
Cc: Roman Himmelreich
Subject: Re: [NFSClient] Using READDIRPLUS (#2)Hi,
well it's been 2 years from active delevoplent of the client.
Why do you need the READDIRPLUS implementation ?
I rly don't remember what are the correct attributes now.
2015-11-12 17:42 GMT+01:00 roman-himmelreich-sp
<[email protected]:
Hi,
There are two functions which list folder items: READDIR and
READDIRPLUS
Basically, READDIR only returns paths, READDIRPLUS returnes all
other
attributes.
When calling READDIRPLUS, there are two extra paramters that I
can't
understand how to use:dircount
The maximum number of bytes of directory information to be
returned. This
number does not include the size of the attributes and file handle
portions
of the result.
maxcount
The maximum size of the READDIRPLUS3resok structure, in bytes. The
size
must include all XDR overhead. The server may return fewer than
maxcount
bytes of data.No matter what I try, I can't seem to get it right.
Did anybody ever call this function succesfully?Reply to this email directly or view it on GitHub
#2.Reply to this email directly or view it on GitHub<
https://github.com/DeCoRawr/NFSClient/issues/2#issuecomment-156189553>.
—
Reply to this email directly or view it on GitHub
Reply to this email directly or view it on GitHub:
#2 (comment)
from nfsclient.
Hi,
I made a few changes to make the MainForm work with READDIR_PLUS too
so it doesn't need to issue a seperate request for the attributes of each file
I would like to push the changes to git so you can see them
but I have no permissions
how does this work? is there some way I can publish this for you to see?
From: DeCoRawr [email protected]
Sent: Tuesday, December 8, 2015 7:35 PM
To: DeCoRawr/NFSClient
Cc: Roman Himmelreich
Subject: Re: [NFSClient] Using READDIRPLUS (#2)
uf i totaly forgot about this. :S
could you tell me where was this boolean missing ?
2015-12-08 18:11 GMT+01:00 roman-himmelreich-sp [email protected]:
Hi,
Eventually I found the problem,
You were missing one Boolean read from the XDR stream
and then the other read attempts were out of sync and everything failed.
READDIRPLUS gives you the contents of a folder with item attributes - in
one call.thanks for the source, it was really helpful!
From: DeCoRawr [email protected]
Sent: Thursday, November 12, 2015 8:19 PM
To: DeCoRawr/NFSClient
Cc: Roman Himmelreich
Subject: Re: [NFSClient] Using READDIRPLUS (#2)Hi,
well it's been 2 years from active delevoplent of the client.
Why do you need the READDIRPLUS implementation ?
I rly don't remember what are the correct attributes now.
2015-11-12 17:42 GMT+01:00 roman-himmelreich-sp <[email protected]
:
Hi,
There are two functions which list folder items: READDIR and READDIRPLUS
Basically, READDIR only returns paths, READDIRPLUS returnes all other
attributes.
When calling READDIRPLUS, there are two extra paramters that I can't
understand how to use:dircount
The maximum number of bytes of directory information to be returned. This
number does not include the size of the attributes and file handle
portions
of the result.
maxcount
The maximum size of the READDIRPLUS3resok structure, in bytes. The size
must include all XDR overhead. The server may return fewer than maxcount
bytes of data.No matter what I try, I can't seem to get it right.
Did anybody ever call this function succesfully?Reply to this email directly or view it on GitHub
#2.Reply to this email directly or view it on GitHub<
https://github.com/DeCoRawr/NFSClient/issues/2#issuecomment-156189553>.Reply to this email directly or view it on GitHub
#2 (comment).
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-162955175.
from nfsclient.
I added you as contributor so you can push the changes now.
Thanks for everything.
DeCoRawr
2015-12-27 9:53 GMT+01:00 roman-himmelreich-sp [email protected]:
Hi,
I made a few changes to make the MainForm work with READDIR_PLUS too
so it doesn't need to issue a seperate request for the attributes of each
fileI would like to push the changes to git so you can see them
but I have no permissions
how does this work? is there some way I can publish this for you to see?
From: DeCoRawr [email protected]
Sent: Tuesday, December 8, 2015 7:35 PM
To: DeCoRawr/NFSClient
Cc: Roman Himmelreich
Subject: Re: [NFSClient] Using READDIRPLUS (#2)uf i totaly forgot about this. :S
could you tell me where was this boolean missing ?
2015-12-08 18:11 GMT+01:00 roman-himmelreich-sp <[email protected]
:
Hi,
Eventually I found the problem,
You were missing one Boolean read from the XDR stream
and then the other read attempts were out of sync and everything failed.
READDIRPLUS gives you the contents of a folder with item attributes - in
one call.thanks for the source, it was really helpful!
From: DeCoRawr [email protected]
Sent: Thursday, November 12, 2015 8:19 PM
To: DeCoRawr/NFSClient
Cc: Roman Himmelreich
Subject: Re: [NFSClient] Using READDIRPLUS (#2)Hi,
well it's been 2 years from active delevoplent of the client.
Why do you need the READDIRPLUS implementation ?
I rly don't remember what are the correct attributes now.
2015-11-12 17:42 GMT+01:00 roman-himmelreich-sp <
[email protected]:
Hi,
There are two functions which list folder items: READDIR and
READDIRPLUS
Basically, READDIR only returns paths, READDIRPLUS returnes all other
attributes.
When calling READDIRPLUS, there are two extra paramters that I can't
understand how to use:dircount
The maximum number of bytes of directory information to be returned.
This
number does not include the size of the attributes and file handle
portions
of the result.
maxcount
The maximum size of the READDIRPLUS3resok structure, in bytes. The size
must include all XDR overhead. The server may return fewer than
maxcount
bytes of data.No matter what I try, I can't seem to get it right.
Did anybody ever call this function succesfully?Reply to this email directly or view it on GitHub
#2.Reply to this email directly or view it on GitHub<
https://github.com/DeCoRawr/NFSClient/issues/2#issuecomment-156189553>.Reply to this email directly or view it on GitHub
#2 (comment).Reply to this email directly or view it on GitHub<
https://github.com/DeCoRawr/NFSClient/issues/2#issuecomment-162955175>.—
Reply to this email directly or view it on GitHub
#2 (comment).
from nfsclient.
Related Issues (11)
- FYI: binaries please? HOT 2
- need vc2013 can not install HOT 1
- Cannot delete files on nfs share from windows 10
- Cannot connect to NFS server on Proxmox 8, port YYYY
- NFSclient v 0.6 MSI does not install on Windows 10 (Home) HOT 5
- The app doesnt have a way to specify remote path HOT 2
- It doesn't work.
- Windows 11 22000, mixed results; LTSC 2019 A-OK. Still maintained? HOT 3
- CLI mode
- Anonymous access?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nfsclient.