Replace the function uafs_mountWithDir with uafs_setMountDir, and
adjust the one caller. This allows libuafs users to manually set the
mount dir after e.g. the mount dir is set from afsd options.
Change-Id: I85a967ce27a72f54c1ab29b007dbb8634017c897
Reviewed-on: http://gerrit.openafs.org/3978
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
}
void
-uafs_mountWithDir(const char *dir)
+uafs_setMountDir(const char *dir)
{
if (dir) {
int rc;
}
}
}
-
- uafs_mount();
}
int
extern int uafs_statvfs(struct statvfs *buf);
extern void uafs_Shutdown(void);
extern void uafs_mount(void);
-extern void uafs_mountWithDir(const char *dir);
+extern void uafs_setMountDir(const char *dir);
extern int uafs_fork(int wait, void* (*cbf) (void *), void *rock);
#endif /* __AFS_USROPS_H__ */
void
afsd_mount_afs(const char *rn, const char *mountdir)
{
- uafs_mountWithDir(mountdir);
+ uafs_setMountDir(mountdir);
+ uafs_mount();
}
void