-
Notifications
You must be signed in to change notification settings - Fork 2
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
Parsing error with nfs4.x #17
Comments
Modified two
But the generated code doesn't compile: error[E0308]: mismatched types
--> /Users/messense/Projects/nfs/target/debug/build/nfs-b8a3ecb314bc087c/out/out.rs:1673:22
|
1673 | LAYOUTRETURN4_FILE = LAYOUT4_RET_REC_FILE,
| ^^^^^^^^^^^^^^^^^^^^ expected `isize`, found `u32`
error[E0308]: mismatched types
--> /Users/messense/Projects/nfs/target/debug/build/nfs-b8a3ecb314bc087c/out/out.rs:1674:22
|
1674 | LAYOUTRETURN4_FSID = LAYOUT4_RET_REC_FSID,
| ^^^^^^^^^^^^^^^^^^^^ expected `isize`, found `u32`
error[E0308]: mismatched types
--> /Users/messense/Projects/nfs/target/debug/build/nfs-b8a3ecb314bc087c/out/out.rs:1675:21
|
1675 | LAYOUTRETURN4_ALL = LAYOUT4_RET_REC_ALL,
| ^^^^^^^^^^^^^^^^^^^ expected `isize`, found `u32`
For more information about this error, try `rustc --explain E0308`.
error: could not compile `nfs` due to 3 previous errors Related code in pub const LAYOUT4_RET_REC_ALL: u32 = 3;
pub const LAYOUT4_RET_REC_FILE: u32 = 1;
pub const LAYOUT4_RET_REC_FSID: u32 = 2;
#[derive(Debug, PartialEq)]
pub enum layoutreturn_type4 {
LAYOUTRETURN4_FILE = LAYOUT4_RET_REC_FILE,
LAYOUTRETURN4_FSID = LAYOUT4_RET_REC_FSID,
LAYOUTRETURN4_ALL = LAYOUT4_RET_REC_ALL,
} |
@messense Hello, my friend. Have you found a solution to this issue? I'm currently looking to develop a high-performance NFSv4 server and came across a similar problem. Do you have any good suggestions or solutions that could help me? |
@akitaSummer I think #83 should fix #17 (comment). |
@messense |
Oops, I think |
@messense Are you still studying nfs4.x related things now? I followed you on X and hope to ask you some questions. |
Nope. |
https://github.com/sahlberg/libnfs/blob/master/nfs4/nfs4.x
Removing all
program
statements results in another error:Using the master branch of fastxdr results in another error:
build.rs:
The text was updated successfully, but these errors were encountered: