From nobody Fri Oct 07 16:56:43 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 4MkZGM6kWxz4TypQ for ; Fri, 7 Oct 2022 16:56:43 +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 4MkZGM51Jyz3FjL for ; Fri, 7 Oct 2022 16:56:43 +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 4MkZGM42tKzfxx for ; Fri, 7 Oct 2022 16:56:43 +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 297GuhCZ035195 for ; Fri, 7 Oct 2022 16:56:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 297GuhO9035194 for bugs@FreeBSD.org; Fri, 7 Oct 2022 16:56:43 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 266886] [FUSEFS] Handling of l_whence with fcntl(F_GETLK) Date: Fri, 07 Oct 2022 16:56:43 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: asomers@FreeBSD.org 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=1665161803; 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=cqNL/cSOxt6Cpi2hxnw+6s8+aSkT6/N+GiGJIb+xk5Y=; b=op1w4/v0aKkXhgs/owMyIsf0XsWB3vf3ZBktqo3XazK0LeoiQKY5h+DnpLKgEgv80TYL7C 5wnU9DbwIzCz30BgIy8/Qa9VPkqlO1fxgRrKN6TJhG3u2fMQQLiN1epchYvBAfdU7N8kLG m4ZB8+FgWYb2BbO9+HFsFzSnnMSpfMFFZNW4He6AkKnOx98bv6lhpHI7pCb6JN2I7dVbA+ yox8vNe6wWaXJhXbFhB3wWpXCTdzH8l981RktmOhgB1Cw63LMqKm8mSyfUz2xWgMJP+IRv ZOcBtdV1FQhTfYcfLCtXs4NYRQ0Lv09qe5Gr9ah36+Kql1l2RReR8IgJX21Ctg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665161803; a=rsa-sha256; cv=none; b=XhR8e76qMrVXSDw05w3y5OsgIPw472NZRbgTfyDm+lhe5sChfsy7su5KQla9285wyBacJX KJFPWgsg+Jd4K/rzU2XVWRczTgj2dsyPG+XfJDtJN+xWei7KfVxlwBjl041lfMOM/LxVss r/ByhCKDofkqyOHskyxByzEZPubOpbNkaFBsB5W/iFCBhUaxiAtw23RdAufT7n4suTvObg gZs+rTV2asvGXTAE0SUYWcZS2IVM5z7m60yQDuGl0h9yOrOPe1mSngkPOswUATdvqV2rgS 4UU9ebauSW6vR3xSuT3DpKRYqwnJcBoXYZAbO/mjbvmyD8X4pzjLDrjc6vkjkg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266886 --- Comment #1 from Alan Somers --- I can't reproduce this problem. If I do the following: ASSERT_NE(-1, lseek(fd, 500, SEEK_SET)); fl.l_start =3D 0; fl.l_len =3D 10; fl.l_pid =3D 42; fl.l_type =3D F_RDLCK; fl.l_whence =3D SEEK_CUR; fl.l_sysid =3D 42; ASSERT_NE(-1, fcntl(fd, F_GETLK, &fl)) << strerror(errno); Then the server gets a FUSE_GETLK operation with start set to 500 and end s= et to 509, as it ought to. I can't reproduce it with FUSE_SETLK either. Could you help provide some more complete reproduction steps? --=20 You are receiving this mail because: You are the assignee for the bug.=