Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1299583pxu; Thu, 17 Dec 2020 06:59:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxZx6FH/hbeCddTfzNyRWLJHNHJJiTlhFVp5gGcVxHq6DRJXhK4A+irdrDATe7EQ5xG0f7 X-Received: by 2002:a05:6402:3048:: with SMTP id bu8mr20949977edb.49.1608217172707; Thu, 17 Dec 2020 06:59:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608217172; cv=none; d=google.com; s=arc-20160816; b=ovySdqRAOSV8iGoOS8yU9c/9sVGDgSDEWmWLJ5fiR8/LBm4XvUePzvqckQ771HLCDt Su6KEiKdGcU/txF7xla0G16wrn9N0XDMTVJftr51RFzkAJYDER6zPHxsPyHl1+eZdzjN IhrrmX9s3z6nV5efU9E3YJDoV/ayHqFKZZf9EzaoOXpj/c/RiRZwgckE8bLVMovsoXq4 DYIWza26CrJBlGlUiKNgKtjf2rwX4KKny7rzY+jujJEM5itF5c5AXbfEvLxq18xpgxyQ 7yjvX51Plp5xixpKRCpXEihWtiqVtURvh9jKNl1G/NhJhyob1lrtiq+a+tByDhbCVRk7 MYnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:content-language :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:to:from:domainkey-signature:dkim-signature; bh=Inxo2ECnVZrBeZLCHxpNnsIiI8OZ/+5mZ73ZbMhFzh0=; b=Zt1A6oigNB7s0Z/emEtGkWx7fjdK8J0W6YDWO50eCNrO9zdUIPJ4s6VTKl9FxwtSKX v/4HKBKqOqGn/RMZQrFAhOCdWas6zJV5SK0+Ht8wlab4nxVSKnqcNO8EuXXHGvF/REHT OOIKXy1bMHBQw+TUTLIaj+UmNUCiguNpGc/QzlE7nco1HHweim/OaCe5bXJMRPRuDpR8 Zd53kxdscK5NcIjQ9OsBTVM5NInSwCkyYaDk1DcvM6FZxU10JS0fGPORJZ1nj0XIyC9d +KA6XwoI+THMpxRfIYZMPSEVom5n44Uupt1TJep9QmZT/TVDJmRdY1wIj2N7+c4UF3AR G6gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mindspring.com header.s=dk12062016 header.b=C2b6xHSC; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mindspring.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k17si2783393ejq.626.2020.12.17.06.59.07; Thu, 17 Dec 2020 06:59:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mindspring.com header.s=dk12062016 header.b=C2b6xHSC; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mindspring.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727806AbgLQO62 (ORCPT + 99 others); Thu, 17 Dec 2020 09:58:28 -0500 Received: from elasmtp-kukur.atl.sa.earthlink.net ([209.86.89.65]:46288 "EHLO elasmtp-kukur.atl.sa.earthlink.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727769AbgLQO61 (ORCPT ); Thu, 17 Dec 2020 09:58:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mindspring.com; s=dk12062016; t=1608217107; bh=Inxo2ECnVZrBeZLCHxpNnsIiI8OZ/+5mZ73Z bMhFzh0=; h=Received:From:To:References:In-Reply-To:Subject:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding: X-Mailer:Content-Language:Thread-Index:X-ELNK-Trace: X-Originating-IP; b=C2b6xHSCZiei+qggiWGjs8J1mXSv2jrz9AwcQ32Rt/hPGk 5p0WQh5gO52du8HR3UhI8fK3LsJbKGAWW2A4uHeBOQ/93rZJQL5Y4s1SRc0xGCGe2pA q7r3URYymcG9yURG0YhrRrerFop14Z1lXGAUwZDMCh0X/I/Cr3m4DxWMdvEu2EXmhuD w/JipEN/IujqWR6J/AErPXZEya9cIHMxJROoSeT3XSRwn1DXlhegoEhignmdfo82s1q qyQJEzUZykNfqFTZaVZ52fnMpZ3WW02xtvQEVFdlDXjkLOR7jU12gumnJ3jXIcJtSds rpBhZ0EYTZBBaJ+o3P6t5m/1448w== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk12062016; d=mindspring.com; b=CjyRyxyitvZKlEZT06K0OB0brpgx6TTo/AW6CC5icFtA2q9/FkkLvYtQfTdhabhQKY/zbc6mN8P69MKGbyCP2j7rNV/ML3KIs9+kgfE7qfIWzk9EuPRlvsxor26qXIFW3vdWp6uwpmUoUziZCTo0UkSS0AWE8ax48KSksJUt5A3uDZAOwBDsCcA79FzUFzTXK/3ZJgz+T/rBpq56F6JIR4KsJGlFLxYW+xmkbR9VwmM3upnhV3Ob7SGoFHNmqODROdJrDw05IiVnX7annD+tIqu81QczYkJ8AJr42bki1diDjF+It8k3Sh6N1mIbyJh4UP3OoWcIgXd3LYgKWidsLQ==; h=Received:From:To:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Mailer:Content-Language:Thread-Index:X-ELNK-Trace:X-Originating-IP; Received: from [76.105.143.216] (helo=FRANKSTHINKPAD) by elasmtp-kukur.atl.sa.earthlink.net with esmtpa (Exim 4) (envelope-from ) id 1kpuiw-00053m-Ji; Thu, 17 Dec 2020 09:57:46 -0500 From: "Frank Filz" To: "'Suresh Jayaraman'" , References: In-Reply-To: Subject: RE: NFSv4x share reservations support Date: Thu, 17 Dec 2020 06:57:46 -0800 Message-ID: <034401d6d484$fb408710$f1c19530$@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Content-Language: en-us Thread-Index: AQKpveR4sxqLTOYksrFzWeTTlRkNcKhVjDOQ X-ELNK-Trace: 136157f01908a8929c7f779228e2f6aeda0071232e20db4d0cad08f40a69f903a2e973319cd3f5a0350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 76.105.143.216 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org > Does Linux NFS server disallow OPENs from SMB or local filesystem when a > DENY_READ/DENY_WRITE (share reservation) is set on a file? If so, how is it > implemented (with VFS flags)? > > The packet captures show that the Linux NFS4x clients always OPEN with > DENY_NONE (as there is no POSIX support for DENY_READ/DENY_WRITE). > Looked at https://linux- > nfs.org/wiki/index.php/Cluster_Coherent_NFSv4_and_Share_Reservations but > was not sure if it uptodate. > > Would like to understand what level of share reservations support is present in > Linux NFS server today. Since the Linux vfs layer has no way to represent deny modes, there is no way for a Linux remote file system such as knfsd or Samba to coordinate on deny reservations. There was a patch set years ago that would have added deny modes to the Linux open system call, but it never got enough support to be merged. The only way to accomplish this is to either have a file system that implements deny modes with some kind of out of band means for applications and servers to communicate (such as an fcntl call) or for remote file system servers to coordinate in the background. There are proprietary out of tree file systems that provide this coordination, but nothing in tree to my knowledge (if there is, please let me know, nfs-ganesha COULD utilize such an out of band mechanism). Frank