Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2000870rdd; Thu, 11 Jan 2024 16:44:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpZY/1bhGYM1WCwvoBvyyUvbockuiij2J3mDbkYuK00F9oIng8yzU5d9okmHbI0i3GS9/E X-Received: by 2002:a05:6358:7206:b0:174:dbdd:f511 with SMTP id h6-20020a056358720600b00174dbddf511mr709694rwa.32.1705020289865; Thu, 11 Jan 2024 16:44:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705020289; cv=none; d=google.com; s=arc-20160816; b=FdDEP8o/Fcpf0IwTwhxgs6Q9MoiHTGy+c5AlRSGc69CTWLY4sXbg3GfA1/SXAxL4j9 Yw4uKfoERa4jv86ERBqhLDNNf/+uz7EG0pFfP9e2oAncSsAhfxERFVQWLPu1j5c60SIs Sw6EUH2KfCZtTZxBpZ5Om/0Zfqa3o5Myod3u299CZsg/1DUaTcgSwhjq8IvLrsWfW+bZ yHEdkQoy12RokUQtYEIjjgw5iaSWBFrACJD8BHs6ixb9ndnOW4hV/0N/SMwxn8AiFveB BfVBe6IDcZMNIL3+FOePuMFTgLk91PBCbPvhdAcsfs1Pj0C9oABsh0cvu5Qq7EIlsREe 75bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=MetRMED4wMmHOC4sJxLk64xo7zIuH58/nznxaHUBYJQ=; fh=Mmlxixxh6RvMjconF9MtWp+g74ZL3e/U8ANUOKWC7u0=; b=Q3jdiNuDACu+4MxuM/gAppDRPUWmb9L0QT9iWgFYHzal/dBLGQY1a8/+jzMPp29Feg bVdSof7TIyOCcFh/UQOaZiQ9uvff+wil5ecqCvTNfpZzBq1NQG9ymKIvzGB2wL80QUbt 5QouwVHWMjSLpxkPEIjry1vomHZn4UKavIlPUuQ5meP/tB2r+Bva1feZhd7MX0EZmXxW dkcpNAkox5sVX4EXzwQj6zWmWKX2V2K9HeJjPD4GmJ8uedtsl/0j5LMJXyRqVeVL2wrK eqD/twJP6lr2ai8fXPIZkCnxwnyzj13OjAc0eEeQGnr3I+06QDcE+54EPusqW1UA9l/w K/kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ixQGlxlq; spf=pass (google.com: domain of linux-nfs+bounces-1050-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o18-20020a639212000000b005ce07e2dc79si2208546pgd.256.2024.01.11.16.44.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 16:44:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1050-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ixQGlxlq; spf=pass (google.com: domain of linux-nfs+bounces-1050-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5CAF1285DDE for ; Fri, 12 Jan 2024 00:44:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A97F44A21; Fri, 12 Jan 2024 00:44:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ixQGlxlq" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 011084A1C for ; Fri, 12 Jan 2024 00:44:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-50e7af5f618so6782392e87.1 for ; Thu, 11 Jan 2024 16:44:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705020275; x=1705625075; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MetRMED4wMmHOC4sJxLk64xo7zIuH58/nznxaHUBYJQ=; b=ixQGlxlq3dB8qfa3JeQ+fyfLVTQ8p28ZAeAXsdhXN9sEX9jp5x+08OAKTCboYOb/ht gArmOGiCM0x/zG+NitjL1PbxcWDqVdXknvOpTOXZfiJpuSvhHDNnmdvFlYtCD+mYJxCD bS3zokBti/dAjISDd6ax6bjV5x9lzjhx539zFiP8yV5sgQzayIRHSpJx9W5wcXBIZxGY 7qJYDE5yrAn3+9JqT8f5jzQRX+5AqW6veOd/N0/wZBmKYIjdbkA2DtPlmUD4oMW8RStC LTCDPo6aw892TzPL4jTpa3PpdVe9cJwObN4mnV0Qpo3MrY3E7xns2N7vxbhh5qXdqhuB Y0dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705020275; x=1705625075; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MetRMED4wMmHOC4sJxLk64xo7zIuH58/nznxaHUBYJQ=; b=BTIy+TVLqDJ424uTSbBI/n2GJyGxFEeFrWb11GOTJ323RhZMc80h1BQSXf9MkLcTNY F36IRvKufdpr1v3W+coZLO3BUYGTCVgDqtfNzFDbVWAzdu8r9OvvGIdd+kyhkon8EsQw VDx/9JPbcoG8ar263KxSUgM6NjX912NqBz1pYf2sVeb70Uhpam98U3lm1Lhi+i0iXyiq cXtuFYIXfxMRSlpl8OFdqum0LpPaQ/j9dcnoxsQmAcIJ8Bs3BLgVopl9OQasnd8Q9MW+ nitohhxi3wyh5bs44/94/L2KGIrjPkmO2u9K+FasShg8rZm36/LocZ17hWgIRVMyB9eL iiVg== X-Gm-Message-State: AOJu0YwX8Ao3hRyLLI4hoVPSoXFWIiYKBwSwww1WVV4haTazi28vKIn7 cabwOd9+XmLfhgk2X9X2z+1BbdDNxRDErcQGcHiKwpPYx7w= X-Received: by 2002:ac2:43db:0:b0:50e:3b8f:3c40 with SMTP id u27-20020ac243db000000b0050e3b8f3c40mr209458lfl.43.1705020274909; Thu, 11 Jan 2024 16:44:34 -0800 (PST) Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <39adc7fc114c6f8ea38fe7c846c322dab5fac907.camel@kernel.org> <5057fdb94f4d61661f9d13ccadb775a3a5bcdc92.camel@kernel.org> In-Reply-To: <5057fdb94f4d61661f9d13ccadb775a3a5bcdc92.camel@kernel.org> From: Dan Shelton Date: Fri, 12 Jan 2024 01:44:08 +0100 Message-ID: Subject: Re: NFSv4.1 mandatory locks working in Linux nfsd ? To: Jeff Layton Cc: Roland Mainz , Linux NFS Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 11 Jan 2024 at 23:53, Jeff Layton wrote: > > On Thu, 2024-01-11 at 22:27 +0100, Roland Mainz wrote: > > On Thu, Jan 11, 2024 at 4:55=E2=80=AFPM Jeff Layton wrote: > > > On Thu, 2024-01-11 at 10:54 -0500, Jeff Layton wrote: > > > > On Sun, 2023-12-24 at 18:29 +0100, Roland Mainz wrote: > > > > > Are there any known issues with NFSv4.1 mandatory locking nfsd co= de in > > > > > the Linux 5.10.0-22-rt-amd64 kernel (technically the Debian Bulls= eye > > > > > RT kernel) ? Is there any kernel or NFS test suite module which c= overs > > > > > NFSv4.1 client mandatory locking ? > > > > > > > > Linux doesn't support mandatory locking at all since 2021 [1]. The = Linux > > > > NFS client and server therefore do not support v4.1 mandatory locki= ng. > > > > > > Forgot the footnote! > > > > > > [1]: https://patchwork.kernel.org/project/linux-fsdevel/patch/2021082= 0114046.69282-1-jlayton@kernel.org/ > > > > OK, this is pretty bad in terms of interoperability.... ;-( > > > > What should a Windows NFSv4 client (Hummingbird, OpenText, Exceed, > > ms-nfs41-client, ...) do in this case ? > > It basically means that locking for these clients will fail if the > > server does not support it... ;-( > > > > I think they have two choices: > > Learn to deal with advisory locking, or contribute some sort of (sane) > mandatory locking implementation to the Linux kernel. None of this will happen. 1. Advisory locking cannot be mapped to Windows mandatory locking. End of story. They are incompatible. That is why the NFSv4 protocol had mandatory locking built in into the first place. That was the grand design and the grand dream. That is gone. 2. No one is going to implement a giant set of code just so that SAMBA and NFSv4 can work. SAMBA has a builtin emulation so mandatory locking works between Windows clients, ignoring the Linux side and Linux advisory locking completely. The only option is option three: NFSv4 for Windows will become a 3rd class glorified FTP replacement with no functional locking. Just for copying files around. End of story. Dan --=20 Dan Shelton - Cluster Specialist Win/Lin/Bsd