From nobody Tue Jan 25 00:39:32 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8A742196ABA8 for ; Tue, 25 Jan 2022 00:39:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JjSfX1tRxz3R3q for ; Tue, 25 Jan 2022 00:39:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2149C1FF59 for ; Tue, 25 Jan 2022 00:39:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 20P0dWfa019777 for ; Tue, 25 Jan 2022 00:39:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20P0dWtJ019776 for bugs@FreeBSD.org; Tue, 25 Jan 2022 00:39:32 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 261434] [fusefs] mtime and ctime changed on every read file Date: Tue, 25 Jan 2022 00:39:32 +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: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: rozhuk.im@gmail.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: 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643071172; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mfjc1ZOZsWGGJfXzkLhgL+iWRPYW+CF8S7WxXowodUU=; b=huNJQQlwkbUgshuSEYUlnjhO/mIeOW5tRdEhyeGeOBv8GZfv/0ojjBgtM61QNObJViJ3HT FOUeTK2gHshzEZ4ZbX/1DBZjc5khYFcImNBTWm+dietEcgKWgv0HZuU5ysJDhTDNuFovwu ffIDeHR9uFfxsZaK3PvWp5kPfkvA3MZPyDGE+WULa/6iXN054Ol7Fc/OSgW+gSYC2rTjuv vj9S7t6MsVuuZaYvJ4SQJ4HbAnTwrN6hjwGCkefRpVEJizNOZhizXukt6/gg1U2VCvnyXb MyMhspLYEhe2lN1L74EoUNcVZpx4h2wcuAtdu7kHKx31ZmUyHM86lN4mkgy6iA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643071172; a=rsa-sha256; cv=none; b=jYmscpM5ESRcHCJ7Xshy3KgJLkOtWjW+BZvGCxs4utO6heF9hNxkVH6e+FWEh8BCqwfDdT nwwDpYtLQAOOkv117ekcjwdArbWZipTf2sibwF9bBQfHCrd54CF5Zxcyb9K073DRMYSqaJ 5SJNgrvLjFY33Eq9lpTNZocUsND0LkuIfgpKF1jNnfPtV08hiTjveUkzKWIFKcIpIadaSn T3e/hsN5td0DKlTBq5uU6hI+t/pqypA+I3Mzvjeta9Qi7HTN4LGVFCda5u7JgficTHkPD3 cs+PceJ7d4QZWLAlShYbqsbRGXCeHIn5jOGwcztZjs0kkTixuSPV8vHV1wCuXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261434 --- Comment #10 from Ivan Rozhuk --- (In reply to Alan Somers from comment #9) > All the kernel does it send upcalls like FUSE_SETATTR to the fuse server It come here: https://github.com/libfuse/libfuse/blob/b08e275083d0316fa4d735d457869d62ce4= 114de/lib/fuse.c#L2873 or https://github.com/libfuse/libfuse/blob/b08e275083d0316fa4d735d457869d62ce4= 114de/lib/fuse.c#L2884 then here: https://github.com/libfuse/sshfs/blob/a2054a2b737577b63e97ea34d8c9976048766= 719/sshfs.c#L2663 and send via net. This code handle atime+mtime together, even if upper layer set only one of them. Probably some fuse backends treat tv_sec=3D0 as empty and not set, but sftp= proto does not. I see no other way to fix this except always set correct atime+mtime values before send them to fuse. > You really should try this on Linux with atime=3Don. I think that by def= ault Linux sets atime=3Doff, which is probably why you didn't notice the pr= oblem there. I ask friend, he test and say that only atime changes. --=20 You are receiving this mail because: You are the assignee for the bug.=