Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1157120ybk; Wed, 20 May 2020 23:29:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdbIQPJkrf5KrwwRA69a+pmIGz1GVnSzjTjy4pGMtb5p9cqBHMdT8PWA6kljpzme4K5vjc X-Received: by 2002:a17:906:3048:: with SMTP id d8mr2120727ejd.97.1590042580530; Wed, 20 May 2020 23:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590042580; cv=none; d=google.com; s=arc-20160816; b=sJ+68CdH2xKq5NDlnrLNUlJSg3LBMqiCABvWLcdugKOuMGokNvmh6qb+GQ+GKGDr1Q P58SHNLXEtsshEhs9f1S99FFeLCkrtsurIot99dVPPBZHt4L7TNEN0aV9TMOV01Mse2k Zu9h+Trm9oYZljNv06iK4NVn8AQDtgK+5EFWESqcg/5DKHu8+oeKezjg1rMiPyIPVQWp FI4O88sek5Ot/vLKveAn8fnFA/trT0H2NMRFr/jrhP+9V+wuyR46DBy5V15656702peX BumCR5ApsFbeqoSSwzKJBWy7duPXz0dotWYfCiB2H8oKE+w9lbYGma0+/BQUUaB9yjND TvEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XcQ706mnkEUUcBhpxWy4uMZE46OzXR5MKbNg5tOP08M=; b=eiWOQ/TQcUzHEjrXkIUopmX2e4G5Yf++gItovcOKe8RAva92kC/HvmgQMXIxE6VZTf ExsTPf7/pA+ECT4Sw6EH9BVQLgQrRd2DjaWFButhIg5ri2qz3FYlKmH2OUfeyvn78kKn ess9ltj49kqH9HzrV/G6R2tWERMcXzco3xmzd5JmreCEszPsX695Q/YLrvQuelfuXWS4 QAZgHGpCYVBL/srznrCYfrOTvsAdLBN8goBv+b4VDKFfiazQd0t6tD9Iyg0NZZ6dN+IA E4owwq0REqGnQR3P+c6k7LwUOuaTf7w0xSRGWHmN0e31iQXZOfjP6E+66HIULQ4FvW5w 06gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dropbear-xyz.20150623.gappssmtp.com header.s=20150623 header.b=slNA0LMV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si2768076edl.294.2020.05.20.23.29.02; Wed, 20 May 2020 23:29:40 -0700 (PDT) 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=@dropbear-xyz.20150623.gappssmtp.com header.s=20150623 header.b=slNA0LMV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728218AbgEUG26 (ORCPT + 99 others); Thu, 21 May 2020 02:28:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728172AbgEUG25 (ORCPT ); Thu, 21 May 2020 02:28:57 -0400 Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60D0EC061A0E for ; Wed, 20 May 2020 23:28:56 -0700 (PDT) Received: by mail-qv1-xf2d.google.com with SMTP id p4so2587099qvr.10 for ; Wed, 20 May 2020 23:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dropbear-xyz.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XcQ706mnkEUUcBhpxWy4uMZE46OzXR5MKbNg5tOP08M=; b=slNA0LMVAH2uhsQP/DitPkZcZcs6y2T94XBE5xB4eOjuTKqBVtEvgxTfKLutP7h1jx xvPuVuKrAPtoRR/3s2qC9s5dcZn2Ty+lQn5/rre1f33Tbs/DT6ZbD7GlgdIQLPeGtY99 2J52amdnIZYeTNeqUTyuJbGix4g+AZPVIrh/d16iL9fzsGMSvy4IDlsFI/jdXEMf6lyK qH2ba6N52boFXUkGBgVMYa8GcFQWjVAmvzvQile2FK5886nYKKyRoxu6pIq539KxDnwv RadnSlXdzsQ9CjV2ZbgqeObhrgnk5Ia8GNK4F0kE9/QEhSs6wOsXJVTBlPdj+h6y10ND 9lyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XcQ706mnkEUUcBhpxWy4uMZE46OzXR5MKbNg5tOP08M=; b=Mf372mBZZrlemXQIqJO81FO4KeONjcXuM/K/6qk977D6DN0+LLq4h1kpnjJA62rzOh /TMWGEjdx7Xjl7ulE10Yttldp4T7dVEEfaSaJ4nyQZdHtg7zrfgnQXiINa0nX44O3dkW 1qePvKP/Z9CIOSnt68AbmYIY5as3H18mWF2LZktSB+7+jfHbp3b22xXByH65pdpMD0qH IeGCKmyNLq7SAyJqfmVokCA14k6n5vTPTwNhX58ne4OYJlXyv0GjK1V756Hs262gCxKT eyM7RAxTeJPaVosj82s3VYUmem3Um3Vlug05R5xb6O/fN0VrLov0VXcM9y8XVM8u1qIj WC/A== X-Gm-Message-State: AOAM530jbNDBzK/HvQBBuG9fW2pScUDJtu3Jk0VmzB3apeAER0o7c1l4 uM5vyFJl7fsfuR4zLgJHaA9a4HqU3Ps9Ud+zu/cePZJB X-Received: by 2002:ad4:4d03:: with SMTP id l3mr8769799qvl.158.1590042535217; Wed, 20 May 2020 23:28:55 -0700 (PDT) MIME-Version: 1.0 References: <20200521023055.GA1246587@dropbear.xyz> <87eerdan1q.fsf@notabene.neil.brown.name> In-Reply-To: <87eerdan1q.fsf@notabene.neil.brown.name> From: Craig Small Date: Thu, 21 May 2020 16:28:44 +1000 Message-ID: Subject: Re: How to separate NFS mounts have same device ID To: NeilBrown Cc: linux-nfs@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, 21 May 2020 at 15:12, NeilBrown wrote: > I would examine /proc//fdinfo/3 and extract the 'mnt_id:' number, > then look for that (as the first field) in /proc//mountinfo. The mountinfo looks very promising and a better way of uniquely working out where a file is mounted. Thanks! - Craig