From owner-freebsd-bugs@freebsd.org Thu Aug 2 06:41:16 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2201A105A862 for ; Thu, 2 Aug 2018 06:41:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id AEAB676546 for ; Thu, 2 Aug 2018 06:41:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 73BF9105A861; Thu, 2 Aug 2018 06:41:15 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 51CA9105A860 for ; Thu, 2 Aug 2018 06:41:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E739A76542 for ; Thu, 2 Aug 2018 06:41:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 4148224E0F for ; Thu, 2 Aug 2018 06:41:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w726fEFK067752 for ; Thu, 2 Aug 2018 06:41:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w726fEdC067751 for bugs@FreeBSD.org; Thu, 2 Aug 2018 06:41:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 230258] [FUSE] [BUG]: Attributes caching issue Date: Thu, 02 Aug 2018 06:41:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: acid@moosefs.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2018 06:41:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230258 Jakub Kruszona-Zawadzki changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |acid@moosefs.com --- Comment #4 from Jakub Kruszona-Zawadzki --- I've checked it using "DIRECT" flag - result is almost the same: hello1: t1 t3 t5 t6 hello2: t1 t3 t5 t6 Still no 't2' and no 't4'. Our problem is not in data caching - this can be fixed using 'direct_io' (not vary good solution, but it works). The problem= is connected with dentry cache - i.e. file length. Because of this cache opera= tion "echo 't3' >> /mnt/llfuse/hello1" uses old file length and overwrites 't2'. In Linux and OS X this works fine. On FreeBSD it looks like 'timeout' param= eter returned with attributes (getattr) and entry data (lookup) is totally ignor= ed. For example - output from OS X (original version - without direct): hello1: t1 t2 t3 t4 t5 hello2: t1 t2 t3 t4 t5 t6 Still no 't6' in 'hello1' - probably they had similar issue and 'fixed' thi= s by invoking 'getattr' whenever file is opened with O_APPEND, so data are appen= ded properly, but then when 'hello1' is read without 'O_APPEND' it also uses "o= ld" file length. On Linux there is 't6' in 'hello1' (proper timeouting attributes). As for now there is no work-around for this issue. We've mentioned 'fuse_lowlevel_notify_inval_entry' only because it could be used as a work-around. We do not use this function in our current implementation. --=20 You are receiving this mail because: You are the assignee for the bug.=