How does one handle the .. entry for a directory that is being used as a mountpoint? For example, how does one handle
/mountpoint/.. ?
Mountpoints
-
Craze Frog
- Member

- Posts: 368
- Joined: Sun Sep 23, 2007 4:52 am
Code: Select all
/mountpoint/.. = /-
xyzzy
- Member

- Posts: 391
- Joined: Wed Jul 25, 2007 8:45 am
- Libera.chat IRC: aejsmith
- Location: London, UK
- Contact:
Some filesystems might not though, so I handle . and .. in the VFS layer, and ignore . and .. entries that are stored on the filesystem. This makes it easier to handle them going over mountpoints, when the kernel encounters .. in a path, it simply goes to vnode->parent, which works over filesystems.
