/etc/mtab and per-process namespaces
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]
Quoted 4 lines · Al Viro
4) If you insist on having
/etc/mtabthe 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/mountsinstead.
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.
Quoted 8 lines · Bodo Eggert
Quoted 4 lines · Al Viro
4) If you insist on having
/etc/mtabthe 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/mountsinstead.So
/proc/mountsshould 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...