Skip to contentSkip to conversation

/etc/mtab and per-process namespaces

DISCUSSION Bodo Eggert 2 participants 2 messages Oct 4, 2005 – Oct 5, 2005 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 4 lines · Al Viro

4) If you insist on having /etc/mtab the same file in all namespaces, you obviously will have its contents not matching at least some of them. Either have it separate in each namespace where you want to see it, or simply use /proc/self/mounts instead.

So /proc/mounts should be a symlink to /proc/self/mounts?

Signature · 2 lines
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.
#4 lore raw
Quoted 8 lines · Bodo Eggert
Quoted 4 lines · Al Viro

4) If you insist on having /etc/mtab the same file in all namespaces, you obviously will have its contents not matching at least some of them. Either have it separate in each namespace where you want to see it, or simply use /proc/self/mounts instead.

So /proc/mounts should be a symlink to /proc/self/mounts?

; ls -l /proc/mounts
lrwxrwxrwx 1 root root 11 Oct 4 20:13 /proc/mounts -> self/mounts ;

like that, perhaps? IOW, it's been done that way for almost 4 years already...