util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* is there a util, or can findmnt be enhanced...(RFE?)
@ 2021-03-11 20:44 L A Walsh
  2021-03-12  7:55 ` Karel Zak
  0 siblings, 1 reply; 5+ messages in thread
From: L A Walsh @ 2021-03-11 20:44 UTC (permalink / raw)
  To: util-linux

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]  <device>

Thanks!


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-03-15 19:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-11 20:44 is there a util, or can findmnt be enhanced...(RFE?) L A Walsh
2021-03-12  7:55 ` Karel Zak
2021-03-13  4:48   ` L A Walsh
2021-03-15 11:02     ` Karel Zak
2021-03-15 19:29       ` L A Walsh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).