From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=BAYES_20, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35AB6C433E0 for ; Thu, 11 Mar 2021 21:16:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C7092600CC for ; Thu, 11 Mar 2021 21:16:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231144AbhCKVPz (ORCPT ); Thu, 11 Mar 2021 16:15:55 -0500 Received: from ishtar.tlinx.org ([173.164.175.65]:54042 "EHLO Ishtar.sc.tlinx.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231175AbhCKVP1 (ORCPT ); Thu, 11 Mar 2021 16:15:27 -0500 X-Greylist: delayed 1881 seconds by postgrey-1.27 at vger.kernel.org; Thu, 11 Mar 2021 16:15:27 EST Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 12BKi3Is049868 for ; Thu, 11 Mar 2021 12:44:05 -0800 Message-ID: <604A8111.8090100@tlinx.org> Date: Thu, 11 Mar 2021 12:44:01 -0800 From: L A Walsh User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: util-linux@vger.kernel.org Subject: is there a util, or can findmnt be enhanced...(RFE?) Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: util-linux@vger.kernel.org I see 'findmnt' shows a mount if you specify the mount point. Given the name, I was surprised it didn't already do this: I was wondering if it could find the mount point of a file or pathname I give to it? So if I am in /home/cache/suse, and type: > findmnt . it would tell me something like: /home[cache/suse] /dev/Space/Home meaning: MNTPOINT[offset_path] Thanks!