aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mount_bsd.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-03-17 15:05:40 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2006-03-17 15:05:40 +0000
commit6f385414b27e929bd14435ea8342cde4bae0ef8d (patch)
treec5a557fa053ebd9d96331f9d620d96a80a1282bd /lib/mount_bsd.c
parent9db31dc1cff5ae2e854649f039f319d45eb58cf3 (diff)
downloadlibfuse-6f385414b27e929bd14435ea8342cde4bae0ef8d.tar.gz
fix
Diffstat (limited to 'lib/mount_bsd.c')
-rw-r--r--lib/mount_bsd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/mount_bsd.c b/lib/mount_bsd.c
index c5661d2..8b3a6d1 100644
--- a/lib/mount_bsd.c
+++ b/lib/mount_bsd.c
@@ -6,7 +6,7 @@
See the file COPYING.LIB.
*/
-#include "fuse.h"
+#include "fuse_i.h"
#include "fuse_opt.h"
#include <sys/stat.h>
@@ -197,21 +197,21 @@ void fuse_unmount_compat22(const char *mountpoint)
system(umount_cmd);
}
-void fuse_unmount(const char *mountpoint, int fd)
+void fuse_kern_unmount(const char *mountpoint, int fd)
{
char *ep, *umount_cmd, dev[128];
struct stat sbuf;
(void)mountpoint;
-
+
if (fstat(fd, &sbuf) == -1)
return;
devname_r(sbuf.st_rdev, S_IFCHR, dev, 128);
-
+
if (strncmp(dev, "fuse", 4))
return;
-
+
strtol(dev + 4, &ep, 10);
if (*ep != '\0')
return;
@@ -305,7 +305,7 @@ out:
return fd;
}
-int fuse_mount(const char *mountpoint, struct fuse_args *args)
+int fuse_kern_mount(const char *mountpoint, struct fuse_args *args)
{
struct mount_opts mo;
int res = -1;