Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2256225yba; Thu, 25 Apr 2019 13:16:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqpoFxZM+sHHna+T7HzM2BZfBHJScSDVCrj34ZtPoyUJRIQ1r68fH8TNjZ2iszLg89hX4c X-Received: by 2002:a63:f707:: with SMTP id x7mr38842716pgh.343.1556223366105; Thu, 25 Apr 2019 13:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556223366; cv=none; d=google.com; s=arc-20160816; b=vz3uoZiOIPXZyHFipN8b+T6E3BHkV1LRPi+wPHApQbuYDtFp6YRm3oex0VzBikESe4 c2QGVkEg9K9PnHkrXdxMqzHyTGjXrf+DBN9xAkzk0xGxN9wjKYiKzmpbqe1sYrZL66+q +VgARt/ubLaX8yigjdoFUNolf++uaGVnHIV1GVr0DfXMema5OUZgbVAJVf4ryYFfI3/S hQmVVu1EMQlbSlqe9qldHMdPReyUklMkum8+2u/NQ6XnTHTJXL8Knc57010ZrkXxNTKI OMNnWQnM7KQkQGHti9N609T3zSGYYYOHqvFrtHbBttHIN81DI432s2UVzfh77lowMEOK wcFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:from:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date; bh=71l9hRkLJpKac3JYqD/w3s2uGIO8XoItYjpmT6h1c6Y=; b=UBIqZNBTgs4GI19J3bXuM93qGNJ67seJtlXW/59E59cJpUznk5hGb3QBCuJFk6QTwt ayCimEkWE/TRUAlljx+oYvgBGRR7TivvtynH4F5sfdoZqbsdYeDgjR8Op0+xN0IjhNge dvJT15HKIFO1vAQPv+NfN6NZbTyescZDpAJB2TSJGQ95rwPlut62zNEvYIzWAJfiu8/N CGPRQrho65S4F316k6Ah16wgSG8OxE+oP2rT5l3sv1Nycd6LNB4oa7NcqIwIVWjYQ4lJ WY5aOycfDzBm9B6Vd5u6zNEnS0W/ltkNRwk3qR+qmaKKtjmzma1k/3l6rfREImDO6feO YUkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8si17325772pgf.502.2019.04.25.13.15.45; Thu, 25 Apr 2019 13:16:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726490AbfDYUOO (ORCPT + 99 others); Thu, 25 Apr 2019 16:14:14 -0400 Received: from fieldses.org ([173.255.197.46]:51468 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726125AbfDYUON (ORCPT ); Thu, 25 Apr 2019 16:14:13 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 61C5B1C9D; Thu, 25 Apr 2019 16:14:13 -0400 (EDT) Date: Thu, 25 Apr 2019 16:14:13 -0400 To: Jeff Layton Cc: "J. Bruce Fields" , linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, abe@purdue.edu, lsof-l@lists.purdue.edu, util-linux@vger.kernel.org Subject: Re: [PATCH 08/10] nfsd4: add file to display list of client's opens Message-ID: <20190425201413.GB9889@fieldses.org> References: <1556201060-7947-1-git-send-email-bfields@redhat.com> <1556201060-7947-9-git-send-email-bfields@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Apr 25, 2019 at 02:04:59PM -0400, Jeff Layton wrote: > More bikeshedding: should we have a "states" file instead of an "opens" > file and print a different set of output for each stateid type? Sure. The format of the file could be something like open rw -- ... lock r 0-EOF ... deleg r I wonder if we could put owners on separate lines and do some heirarchical thing to show owner-stateid relationships? Hm. That's kind of appealing but more work. I was only planning to do opens for the first iteration, and I think extending later in separate files is slightly safer. More trivial, but: it'd lengthen lines and make columns line up less often. But if we include a lot of long variable-length fields then that's kinda hopeless anyway. --b.