Re: Specifying a generic and per-fs mount line in /etc/fstab as well as no-canonicalize.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 07, 2014 at 12:14:55PM -0700, Linda Walsh wrote:
> Bernhard Voelker wrote:
> >On 08/07/2014 12:55 AM, Linda A. Walsh wrote:
> >>if "/usr/src" is a symlink pointing to /home/src,
> >>and under /home/src, packages points to ../packages, then when I
> >>switch to /usr/src/packages, I see my path listed as /usr/src/packages:
> >>
> >>>> cd /usr/src/packages
> >>/usr/src/packages> pwd
> >>/usr/src/packages
> >>
> >>Only by asking an external util can I find the real name:
> >OT, but: no, "pwd -P" (pwd, the shell built-in) does.
> Yeah... by asking the builtin for the physical path, I could see
> mount -p showing you the physical path.  But wouldn't
> that be "/dev/dm-x"?

/dev/dm-N is *private* DM path and should be nowhere used in
userspace. This is requirement from DM guys. 

> Where is it coming up with /dev/mapper/<mangledname>?

/sys/block/dm-N/dm/name
 
> It's not the link the user gave, and it's not the real device, seems like
> those are "dm" internal names?

it's official device name

> maybe mount -d? for those?

I don't plan to do anything with mount(8) output. If you want more
customized output then use findmnt(8), for long time I think about a
new column KNAME (kernel device name of the mount source). We already
have such column in lsblk(8), maybe it would be nice for findmnt(8) too.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux