From owner-freebsd-current@FreeBSD.ORG Sat Mar 23 21:52:41 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4D8CF272 for ; Sat, 23 Mar 2013 21:52:41 +0000 (UTC) (envelope-from gorshkov.pavel@gmail.com) Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com [IPv6:2a00:1450:4010:c03::22d]) by mx1.freebsd.org (Postfix) with ESMTP id CBEA8B75 for ; Sat, 23 Mar 2013 21:52:40 +0000 (UTC) Received: by mail-la0-f45.google.com with SMTP id er20so9347259lab.18 for ; Sat, 23 Mar 2013 14:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :x-operating-system:x-editor:user-agent; bh=fYeU8efKyQDtn3EvdHT0m4ljmlAQRimHWHPBTHKVcKM=; b=zjZmr4FP4BSsMYEyjQTUH10d5I4XiQ7wlfwrWOrgLZXFS3bEgKPErGPe1xpJd/mtwF e6dAcUraMqbeSxSlGQUMRYAKU+YZMz0+o7Y4dcjJr9WJ0rnnyuW3sPnKclK1qje0Pd5x yF4OjtMKlbUfDDnbfLFOp7XF7+/WTDIvTPHHGMbIMy7FDA+rgC7XLbFms4XYE12gaeuU otZjL+odwGd/DGxXmS4np16fPhR2YwtxbcwfMoe67mhaN6BYd0bpFtJvC2N+j8740wDm JbqXyrlcw98JKLTep7bOgYYeHc/mt8RfJRrWOtC8zpCu2XFVKolhB33P4wh3ffZuuVxV N2iQ== X-Received: by 10.112.133.137 with SMTP id pc9mr3360962lbb.74.1364075559822; Sat, 23 Mar 2013 14:52:39 -0700 (PDT) Received: from localhost (ppp91-79-77-110.pppoe.mtu-net.ru. [91.79.77.110]) by mx.google.com with ESMTPS id fz10sm2885942lbb.12.2013.03.23.14.52.38 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 23 Mar 2013 14:52:39 -0700 (PDT) Date: Sun, 24 Mar 2013 01:52:36 +0400 From: Pavel Gorshkov To: Kevin Oberman Subject: Re: Report on issues with fusefs Message-ID: <20130323215236.GA17446@localhost> References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 9.1-RELEASE amd64 X-Editor: Vim-703 http://www.vim.org User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current@freebsd.org, Marko Zec X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Mar 2013 21:52:41 -0000 --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--