From nobody Tue Jan 25 02:54:00 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 C7583197AFF3 for ; Tue, 25 Jan 2022 02:54:00 +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 4JjWdh3t4xz3j78 for ; Tue, 25 Jan 2022 02:54:00 +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 6500E21BB1 for ; Tue, 25 Jan 2022 02:54:00 +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 20P2s0sa098648 for ; Tue, 25 Jan 2022 02:54:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20P2s0fs098647 for bugs@FreeBSD.org; Tue, 25 Jan 2022 02:54:00 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 02:54:00 +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=1643079240; 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=Rq847eckt7nH2nTtH/pOeXLh/YCissMurezUS0i4Ocg=; b=g+rPzeK8jLqqECBXnN9Vx9P4mF9Qie4FJU/RMZJmLFLH/CJTx5Y5hOAPmwEn/Umxhz9BUq NDKJymU9Eqz5HVBTBhcdCT2WlYyBZSpybP60pkPN1dfipcB0mQVTw993pQwcFBTNJ5rz1V I15/DLgxL0C170w6B2O2ui3LTGfZXdtYINw4udMZ7gzC8I16H2VOzwYQMz6hdkHa1Kb59F eQUrx2+wUDgEiG0i/LXl7sJFvl3ep/GPeHItq9Qrz+UvT3EppUwxE+1pZg1kSZYWzrsM/c Tl8aw1/YeAI9y68l0a3Qz9Ej/8fTqu3KBQen0y9+MCoItv6nRzxZhIzCZbMN6g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643079240; a=rsa-sha256; cv=none; b=g4X0J4/nEg90uZrqax/5QT/xF3EXmph+ZK299utat2+ip9JRpWcs30OmxSNZynGaB9gpgU kFHxA54LKD8Z8hij1rxj0ameGDFhsRuBzCDo3JTA5xNPxvI4+B779+VrKqYjiPd1idOt70 Ry8fYtwykzUMxbGFdLZ56uCzDOc2k0LQ4sXRiw/BowUJR6Zg98w/Y8QOq8nAfzdDfYLaFK VqMDjD9vq7H491K63ZFVJ3xshiX7F2QvxvuVC1a6k6TEUg46dWVzf1jSJkj88IXo0joZJh Ev7E2xAuffxMTBxKxnZvlyq65/gp9XglrSYEXrLP+/mf6vmEUO1smjnl7TW0gQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261434 --- Comment #12 from Ivan Rozhuk --- (In reply to Alan Somers from comment #11) > Looking at the code you sent, sshfs_utimens is ignoring the tv_nsec field= , which is clearly a bug. I agree that libfuse+sshfs code is not clean, but sshfs MUST sent atime+mti= me in one message. https://datatracker.ietf.org/doc/html/draft-ietf-secsh-filexfer-02 > The `atime' and `mtime' contain the access and modification times of > the files, respectively. They are represented as seconds from Jan 1, > 1970 in UTC. There is no place to nsec and magic values. > This is a bug in sshfs, and you should report it upstream. libfuse does not call utimens() in case UTIME_OMIT, as far I understand. I have no plans to report it. > Did your friend use "-o strictatime"? No, just -o atime. atime is updated in his tests, mtime is not. > Always sending mtime along with atime would be exactly the wrong thing fo= r the kernel to do. Only sending atime is what it's supposed to do. Another way is to get mtime/atime some where inside sshfs, probably sending additional requests, witch I do not like. --=20 You are receiving this mail because: You are the assignee for the bug.=