Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1046660ybk; Wed, 20 May 2020 19:56:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/Sw3M0JAekerZC/ko0GjVto3gPgRfMPYwa1c52KKYUIRJ0SQohoOn3Zdh02WSfKRI0aju X-Received: by 2002:a17:906:4009:: with SMTP id v9mr1632962ejj.63.1590029792408; Wed, 20 May 2020 19:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590029792; cv=none; d=google.com; s=arc-20160816; b=HAF+u2j6d7cdVXWtEmyxVlY9gAertkD4IACBG+PpxtWHjZ2b66sSRqirO3ulaYpc/v HB3dq+MvsZ63xlmLKoY8YP5L++URKm8C6lGb/BhSYoeQORY+hHwVhpLbOt3jLYIYXQiD 3L7UgyarevJpehceNpV2P2t0KTURJWAPzdfsKPfv3SXmIDBDQmTlhp/E2sQ6BdPvevMa +uKRVbVZCz5MyisCAyuKS1CfUg/NzYZrkQ6/t2rh5npkJjsM6gUHqZf5Etn7pr+x0to5 QwDP9Q8mxkOu+pzZe6iRfgCj372V2kQ0EJJI+KEQBoh7jo1bD3oUSh8mmcLWGMis+ff9 b+sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:to:from:dkim-signature:date; bh=GFdD33owoIomSl/qGuQKDxIb9gYIUMFYiyjG/eWGhFE=; b=tAiiSkAQfzTlXk3oS1B6hEGV/tTDGXMqCR4iBMuC2uxIPBHPHNBkeaWXDJnaX5aN+k 85dvGhJCg7U2MMaMGrUgeUal9l1E9ViVOfJp13CetRuFKEwAmSWqFGyx95LD4qd1TmY3 7meQ6KExXl2lehgPLDxyQYClm16NZtfbAyBaJ+DlB2L/7s5D0+xVyCfxIvH8ebmK4buB N9Q82BIyiYVXD8MC10SVgeIP71kKCDCTwO2dp/lfruMOxvsTm+uR5yK/tyt6EA5IzxiB /O7sa5LeJlS5e9DKAzYj8+NlprRWJMrxHGV67Hmx5Hd8q6wUPiCVOBOatekQlSQ6jD12 Tt+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@dropbear.xyz header.s=202004 header.b=qIqic1Ot; 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 gh14si2659782ejb.650.2020.05.20.19.55.57; Wed, 20 May 2020 19:56:32 -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=fail header.i=@dropbear.xyz header.s=202004 header.b=qIqic1Ot; 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 S1726979AbgEUCz5 (ORCPT + 99 others); Wed, 20 May 2020 22:55:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726861AbgEUCzz (ORCPT ); Wed, 20 May 2020 22:55:55 -0400 X-Greylist: delayed 473 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 20 May 2020 19:55:55 PDT Received: from smtp.dropbear.xyz (constantine.dropbear.xyz [IPv6:2001:19f0:5801:2cd::100]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1B157C061A0E for ; Wed, 20 May 2020 19:55:55 -0700 (PDT) Date: Thu, 21 May 2020 12:30:55 +1000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dropbear.xyz; s=202004; t=1590029281; bh=YVW2gUVoevwFC/+ukgxl6vUHcq+TTqUd8my3OBObEPw=; h=Date:From:To:Subject:From; b=qIqic1OtmgHDA3fj1bSZAszzvTlL3C/xCeU1RfKl8HLKNmltFZ2XYKWJMddWRKIFL j18p0VI0sVvA2LI8IeJffR7DLwXVLYX8KuI/+QwVhGHUVCYeU5gZMvqRKHxImFi2fk LnPMq71cAYMLAO7jKJNlWQ2YKFVkxCEvu96+Gxjk= From: Craig Small To: linux-nfs@vger.kernel.org Subject: How to separate NFS mounts have same device ID Message-ID: <20200521023055.GA1246587@dropbear.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi, I'm the author of the psmisc programs that include things like killall and fuser. I have a problem with finding files open on NFS mounts from the same server. The issue is at https://gitlab.com/psmisc/psmisc/-/issues/10 The way fuser does its job is to find the mounts you specify and collect the device IDs, then scans all /proc//fd/3, dereference the symlink and tell me which of these two NFS mounts from the same server it comes from?" how would you do it? A simple string match (/mnt/a vs /mnt/b) does not work because you can have symlinks across mounts. Any help here would be appreciated. I'm not subscribed to the list so hopefully, this makes it through whatever filters there are and please CC me on replies. - Craig