[OpenAFS] Re: afs_syscall (Samba as a client of OpenAFS)
rra at stanford.edu
Tue Sep 30 21:04:02 GMT 2008
"Derrick Brashear" <shadow at gmail.com> writes:
> If you call our syscall stub from libsys it just works. If you have
> your own, you get to fix it.
A portable implementation of the syscall stub for any platform other than
AIX (which has a bizarre syscall calling mechanism) is available as part
of the kstart distribution at:
See portable/kafs* and m4/kafs.m4. (pam-afs-session also includes the
same code, but it's not as well-separated there yet.)
Note, however, that this only implements the glue for setpag and unlog.
The pioctl call is there, but none of the constants for the other calls.
You'd need to grab large chunks of the OpenAFS headers for the constants
required to make the other system calls, including setting a token and
listing tokens. So you might be better off just using the OpenAFS libsys
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
More information about the samba-technical