afsd.fuse: Force internal mount dir to /afs
authorAndrew Deason <adeason@sinenomine.net>
Thu, 17 Feb 2011 21:15:06 +0000 (15:15 -0600)
committerDerrick Brashear <shadow@dementia.org>
Thu, 17 Feb 2011 22:02:35 +0000 (14:02 -0800)
Commit 1f1545dfb708b6f70065da58b44676b8eafef772 made it so the
argument given to -mountdir sets the internal mount directory.
However, afsd.fuse assumes that the mount dir is always /afs
internally. So, use the uafs_setMountDir function to reset the
internal mount dir to "/afs", so afsd.fuse can work with non-/afs
mountpoints.

Change-Id: I985f1a25d04af4027c7adef69231e2f56e026d24
Reviewed-on: http://gerrit.openafs.org/3979
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/afsd/afsd_fuse.c

index 4e6cc5c..1bf5e86 100644 (file)
@@ -91,6 +91,9 @@ static void *
 fuafsd_init(struct fuse_conn_info *conn)
 {
     uafs_Run();
+
+    uafs_setMountDir("/afs");
+
     return NULL;
 }