Date: Sun, 24 Mar 2013 01:52:36 +0400 From: Pavel Gorshkov <gorshkov.pavel@gmail.com> To: Kevin Oberman <rkoberman@gmail.com> Cc: freebsd-current@freebsd.org, Marko Zec <zec@fer.hr> Subject: Re: Report on issues with fusefs Message-ID: <20130323215236.GA17446@localhost> In-Reply-To: <CAN6yY1vYF=i7%2BgdjX2nYMCzjomhrSRAS1qpBMB7-qo0XSgx0JA@mail.gmail.com> References: <CAN6yY1vYF=i7%2BgdjX2nYMCzjomhrSRAS1qpBMB7-qo0XSgx0JA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Mar 22, 2013 at 10:16:09PM -0700, Kevin Oberman wrote: > I've now been using fusefs regularly for a few months and I have found > a few issues that i wanted to report. > > Most disturbing is corrupted NTFS systems. On several occasions I have > found an NTFS system could not be written to with either FreeBSD or > Windows. I had to user Windows disk check to repair the file system, > but a few files were lost. this may be an issue with either fusefs or > ntfs-3g. Not sure which, but it is likely tied to the next issue. This patch, also referenced in ports/169165, might help solve at least some of the issues: http://www.mail-archive.com/freebsd-users-jp@jp.freebsd.org/msg04947.html http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/169165 --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-fuse-vnops --- fuse_vnops.c.old 2012-02-13 11:59:35.000000000 +0900 +++ fuse_vnops.c 2012-02-13 12:00:15.000000000 +0900 @@ -175,6 +175,11 @@ /* file ops */ static fo_close_t fuse_close_f; +#if __FreeBSD_version > 900040 +static fo_chmod_t fuse_chmod_dummy; +static fo_chown_t fuse_chown_dummy; +#endif + /* vnode ops */ static vop_getattr_t fuse_getattr; static vop_reclaim_t fuse_reclaim; @@ -219,6 +224,10 @@ .fo_kqfilter = NULL, .fo_stat = NULL, .fo_close = fuse_close_f, +#if __FreeBSD_version > 900040 + .fo_chmod = fuse_chmod_dummy, + .fo_chown = fuse_chown_dummy, +#endif .fo_flags = DFLAG_PASSABLE | DFLAG_SEEKABLE }; @@ -3659,3 +3668,17 @@ return (0); } #endif + +#if __FreeBSD_version > 900040 +static int +fuse_chmod_dummy(struct file *fp, mode_t mode, + struct ucred *active_cred, struct thread *td) { + return (ENOSYS); +} + +static int +fuse_chown_dummy(struct file *fp, uid_t uid, gid_t gid, + struct ucred *active_cred, struct thread *td) { + return (ENOSYS); +} +#endif --VbJkn9YxBvnuCH5J--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130323215236.GA17446>