void
afsd_mount_afs(const char *rn, const char *mountdir)
{
- uafs_mountWithDir(mountdir);
+ uafs_setMountDir(mountdir);
+ uafs_mount();
}
void
}
int
-afsd_call_syscall(long param1, long param2, long param3, long param4,
- long param5)
+afsd_check_mount(const char *rn, const char *mountdir)
{
- return call_syscall(AFSCALL_CALL, param1, param2, param3, param4, param5);
+ /* libuafs could provide a callback of some kind to let the user code
+ * specify a "is this mount point valid?" function, but for now there's
+ * no need for it. */
+ return 0;
+}
+
+int
+afsd_call_syscall(struct afsd_syscall_args *args)
+{
+ return call_syscall(AFSCALL_CALL, args->syscall, args->params[0],
+ args->params[1], args->params[2], args->params[3]);
}
int