[lkml]   [2020]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: file metadata via fs API
Miklos Szeredi <> wrote:

> That presumably means the mount ID <-> mount path mapping already
> exists, which means it's just possible to use the open(mount_path,
> O_PATH) to obtain the base fd.

No, you can't. A path more correspond to multiple mounts stacked on top of
each other, e.g.:

mount -t tmpfs none /mnt
mount -t tmpfs none /mnt
mount -t tmpfs none /mnt

Now you have three co-located mounts and you can't use the path to
differentiate them. I think this might be an issue in autofs, but Ian would
need to comment on that.


 \ /
  Last update: 2020-08-12 15:06    [W:0.136 / U:3.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site