Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2372478yba; Thu, 25 Apr 2019 15:30:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwn0ZmzUKWfdMVmMmjmTyubUAfk34XFAwe5CbVJ8mxXi9i2tXOamWyePR7cCo+oPJ50fwHU X-Received: by 2002:a63:a54:: with SMTP id z20mr16410052pgk.27.1556231436243; Thu, 25 Apr 2019 15:30:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556231436; cv=none; d=google.com; s=arc-20160816; b=FwEQKLZhYV2ygYFcVxNfnRYodICUJ5rXAA23y/AYYFCiV7nw/qGPe466P/rkmb/9ph SJKV6VAIAwVHIG7AjpfwjEdpOz6ewZswpi1KrOg3S30U7qP/4cKeCwFkHIHZp3pG6pF5 6JJFuMEmH7pib9nLSt74EfT+PFA334PkKm6gu/gvG9xBlg8qo2VKLm9p5Mp3Nu8fDhQ7 Nu5L6CVud47P4bzO1nyQ1dt8nwT3LBUQULHBm33ThnCJjhebsA8taZzPdBnSH+KJsufm 7d3QRO4AJyirfvvpjj90B/yMzFL4iqy+04k45W3L2FOIgVB9DcCMbLyTHQqPMrSdhp9I decQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:to:cc:in-reply-to:date:subject :mime-version:message-id:from:dkim-signature; bh=Lc6qTZfLyRN9w+Iayh0z63UHZdquyrcbISXK9Sap7E8=; b=ZcuJmwn5lyfxYrHx75lyNh/wxaRo2Pzh//aUMyNvvaShhlWSrXqeuDTuGW3vAajZW0 /ufo/ioFw90DvmAfZYNjUid7NTb2LRA60Xh9kSLLBG0iKKz1+Xgzpzx9i+lBfWnOytJA Yx8NS3Gq6csZOGl9lhVDPd2CDaYELq8+51AjjHiRXJ1KOmZioBGAMy2fvmWhHsTMRegR xE6V/HO8L6Qq7ctB93f/Dum8Gi2DI5ByToqdLEqYNYd0x2FrQuTVJHdvXGsxdaLyz8n8 suOFqijCSF0ntoo8kW8o2/PmNu+LapBDvIiOCdrczcoom8eHxyC3Banv85VJtNEpcxt3 JFnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dilger-ca.20150623.gappssmtp.com header.s=20150623 header.b=DLAXaCmV; 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 y24si23065992plr.255.2019.04.25.15.30.16; Thu, 25 Apr 2019 15:30:36 -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; dkim=pass header.i=@dilger-ca.20150623.gappssmtp.com header.s=20150623 header.b=DLAXaCmV; 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 S1727468AbfDYVO0 (ORCPT + 99 others); Thu, 25 Apr 2019 17:14:26 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34164 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726830AbfDYVO0 (ORCPT ); Thu, 25 Apr 2019 17:14:26 -0400 Received: by mail-wr1-f68.google.com with SMTP id c6so1366977wrm.1 for ; Thu, 25 Apr 2019 14:14:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dilger-ca.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=Lc6qTZfLyRN9w+Iayh0z63UHZdquyrcbISXK9Sap7E8=; b=DLAXaCmVKnZS9/5SX1ConRBbwuqW5uXEzjnXq37jfO92hWs9NOKjRTAbq7/JNUnEmm OY9G7Qp0o12RrmhzovBDwlvC5WpMaTorV/JH+kUnbTq1g1i0CTGLArl/ZJcWvj6jZ1I0 Gr3HtERBplqBzFiVs5AAxss7LgoO4lwbFrIjbnCDJmpzL7hQSGYrJw5E05hbmkI5yMLN v+kJ9QSsS3mQMSi478Ve35DkeyuCq/63kS+H+KnWDjbe+1+li5Z3w9bwIiWOfTe/nObZ hWqGLblTnoqZNMbLnGWng1A8tFS/RPrhSbxx5lSv9n/JdDFgId8jzItNHGijiyWofvrL UyEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=Lc6qTZfLyRN9w+Iayh0z63UHZdquyrcbISXK9Sap7E8=; b=RG+fz0lMVkABJlOLtOv5hbOFCo8DJC9+oudbdAVwSTH9KAdmogcGhjpuNdo0Tj2Euk peQuf3ek1aUYMP/BoUyENnj7pQqMP8/Ex98SbLtNqfr1G6cnb9dx1J92UgKB8rC1r1nv 5S/lwEl/8InRQ6m1jPbrKWTBwR7WUgibDKlxLCHpeHhzijNoqKoIEvfIpGRGlAc+nDr5 9To/2aikTrlMpIFGcDo4+Vy753iFdmU+ev21HYo27P/gTDlgIn4r2j52YPOGv7qawAHe 6EKbo9fnyWtIdBELUv9uihITtXFHTfZFGtMEZbKEYzkXWuO93NDgPj3Vr0/T4Grrxp5j RNuQ== X-Gm-Message-State: APjAAAUix4x6eShLh4OoVg3C31Wmesb7x5EF2db4NDw7lhG8ce2cyz5M 7m3aDr6BzMDNGZnGXeXMcWpnYg== X-Received: by 2002:adf:ed90:: with SMTP id c16mr920478wro.74.1556226864321; Thu, 25 Apr 2019 14:14:24 -0700 (PDT) Received: from surfer-172-29-5-61-hotspot.internet-for-guests.com ([185.37.136.130]) by smtp.gmail.com with ESMTPSA id i18sm21401514wrm.7.2019.04.25.14.14.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 14:14:23 -0700 (PDT) From: Andreas Dilger Message-Id: <7F460FEA-BD69-4559-926C-5C1B0CF90E3C@dilger.ca> Content-Type: multipart/signed; boundary="Apple-Mail=_EB3E3A59-94EE-44CC-8383-078B4B992E50"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH 08/10] nfsd4: add file to display list of client's opens Date: Thu, 25 Apr 2019 23:14:23 +0200 In-Reply-To: <20190425201413.GB9889@fieldses.org> Cc: Jeff Layton , "J. Bruce Fields" , linux-nfs , linux-fsdevel@vger.kernel.org, abe@purdue.edu, lsof-l@lists.purdue.edu, util-linux@vger.kernel.org To: "J. Bruce Fields" References: <1556201060-7947-1-git-send-email-bfields@redhat.com> <1556201060-7947-9-git-send-email-bfields@redhat.com> <20190425201413.GB9889@fieldses.org> X-Mailer: Apple Mail (2.3273) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org --Apple-Mail=_EB3E3A59-94EE-44CC-8383-078B4B992E50 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On Apr 25, 2019, at 10:14 PM, J. Bruce Fields wrote: > > 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. My suggestion here would be to use YAML-formatted output rather than space/tab separated positional fields. That can still be made human readable, but also machine parseable and extensible if formatted properly. Something like the following (use https://yaml-online-parser.appspot.com/ to validate the formatting): - : { state: open, mode: rw, owner: } - : { state: lock, mode: r, start: 0, end: EOF, owner: } > 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. Cheers, Andreas --Apple-Mail=_EB3E3A59-94EE-44CC-8383-078B4B992E50 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIzBAEBCAAdFiEEDb73u6ZejP5ZMprvcqXauRfMH+AFAlzCIzAACgkQcqXauRfM H+DlOw//VSr+buQMPY+uIy7a+0sVuPJbaxqgSkrvlzeyVcyPRwlvYSiZ4ZyhCIYT hH9QvT+SpWVLOQlReuRxmZJh64kTpuSuFzPNII5NF5JRcbNfmitpltylSNzLovIZ m0fwuVGylQwNMdhltPuGpngAIzg6TkdoI14qKyQ17PV+sdWma8Zb7C+XTXdAItGM xI9PtRlTTGs6/jYd8C3yTT03qcNoUbK1eLAbN002MiWWMIvllZ3aeXncQbTIJIr2 dcZyCTYo47iDo2lkulvKKO62IjyPw6Oh+VsfgjB6i1LJrUFqUYTJYT72YutQ+LS5 bIs9XK619RwEOClPqbtpSIXGaTuEK+Dh7rZF58cl65OzamseuxYk0YhQNHoZds/5 HgGjwLbPH5CEr9j+sc07iWjbNH1KWWckryBTYG1KLthHw40hS9WZp2HIr/6mp3PN Z08tti2uuAndjMXZ0NoPQdF/yo0NtQ1PzI8C+VCmEcysIY+5fx6GR4VOQk96/f2E m1m2D8ooKZ1WV/MDLX90inSNRdQFgj7bAFfDp0BVv2ywpAe5GxnsZCx97VMizwhj h33Kvw9pznMf6yQDITypFJ98N8g8P1QqwMEAaEgLtgXAHv+nVLPn1SnGnH43DuSu pZOpH4f+6mc7U8RxawDgiTOc06p51gxqaegRrtROu41ZiZp/hMw= =sOWl -----END PGP SIGNATURE----- --Apple-Mail=_EB3E3A59-94EE-44CC-8383-078B4B992E50--