-
Notifications
You must be signed in to change notification settings - Fork 78
Add support for mount export for fuse-nfs #140
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,3 +88,16 @@ type MountResponse struct { | |
FileHandle | ||
AuthFlavors []int | ||
} | ||
|
||
// Group contains a group node, with information about the allowed access group. | ||
type Group struct { | ||
Name []byte | ||
Next []Group | ||
} | ||
|
||
// Export contains an export node, with information about an exported filesystem. | ||
type Export struct { | ||
Dir []byte | ||
Groups []Group | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is, but the Go wrapper "helpfully" dereferences all pointers - so we declare it as an array instead. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They are documented as equivalent in XDR: https://datatracker.ietf.org/doc/html/rfc1014#section-3.18 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The pattern in the rest of this library has been to write the individual fields with the extra 0 to signify the end of the list e.g. https://github.com/willscott/go-nfs/blob/master/nfs_onreaddir.go#L116 while this is more fiddly, it makes the type 'logically correct', so that the caller doesn't have to understand the nuance. |
||
Next []Export | ||
} |
Uh oh!
There was an error while loading. Please reload this page.