From 6f385414b27e929bd14435ea8342cde4bae0ef8d Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 17 Mar 2006 15:05:40 +0000 Subject: fix --- lib/mount_bsd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/mount_bsd.c') 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 @@ -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; -- cgit v1.2.3