<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Olivier Daudel wrote:
<blockquote TYPE=CITE>Hi Dave,
<br>This patch try to support namespaces.
<br>The following sample use two processes having different namespaces.
<br>For example, /sys and /dev/shm are presents in one namespace and not
in
<br>the other.
<br>Olivier.
<p>crash> mount -n 1
<br>VFSMOUNT SUPERBLK TYPE   DEVNAME           
DIRNAME
<br>f7eab780 f7eaf200 rootfs rootfs            
/         f7eabf00 f784d800
<br>tmpfs  /dev              
/dev      f7eab080 f7ce5600 ext3   /dev/root
<br>         /        
f7eabf80 f7ea3c00 proc   /proc             
/proc
<br>  f7eab100 f7a7ae00 usbfs  /proc/bus/usb     
/proc/bus/usb
<br>f7eab880 f7eaf400 sysfs  /sys              
/sys      f7eab980 f7d72200
<br>devpts /dev/devpts        /dev/pts 
f7eaba80 f7af5c00 tmpfs  /dev/shm
<br>         /dev/shm  f7eabb00
f7029400 ext3   /dev/sda3
<br>/mnt/sda3 f7eabb80 f7209a00 binfmt_misc none
<br>/proc/sys/fs/binfmt_misc
<br>f7eabd80 f7af6c00 rpc_pipefs sunrpc            
/var/lib/nfs/rpc_pipefs
<br>f7eabc00 f6de5400 autofs automount(pid2367) /net     
f6e44780 c1f63000
<br>autofs automount(pid2357) /misc     f6e44200 f6c4d800
nfsd   nfsd
<br>         /proc/fs/nfsd
<br>crash> mount -n 3287
<br>VFSMOUNT SUPERBLK TYPE   DEVNAME           
DIRNAME
<br>f6e44180 f7eaf200 rootfs rootfs            
/         f6e44700 f7ce5600
<br>ext3   /dev/root         
/         f6e44680 f784d800 tmpfs 
/dev
<br>         /dev     
f6e44600 f7d72200 devpts /dev/devpts       
/dev/pts
<br>  f6e44580 f7ea3c00 proc   /proc             
/proc     f6e44500
<br>f7a7ae00 usbfs  /proc/bus/usb      /proc/bus/usb
<br>f6e44480 f7209a00 binfmt_misc none              
/proc/sys/fs/binfmt_misc
<br>f6e44300 f7029400 ext3   /dev/sda3         
/mnt/sda3 f6e44280 f7af6c00
<br>rpc_pipefs sunrpc            
/var/lib/nfs/rpc_pipefs
<br>f7eaba00 f6de5400 autofs automount(pid2367) /net     
f7eabe00 c1f63000
<br>autofs automount(pid2357) /misc
<p>----------------------------------------------------------------
<br>Ce message a ete envoye par IMP, grace a l'Universite Paris 10 Nanterre
<p> </blockquote>

<p><br><tt>Again your mailer is mangling your output...</tt><tt></tt>
<p><tt>Anyway, what your patch would show is this:</tt><tt></tt>
<p><tt>crash> mount -n 1</tt>
<br><tt>VFSMOUNT SUPERBLK TYPE   DEVNAME           
DIRNAME</tt>
<br><tt>f7eab780 f7eaf200 rootfs rootfs            
/</tt>
<br><tt>f7eabf00 f784d800 tmpfs  /dev              
/dev</tt>
<br><tt>f7eab080 f7ce5600 ext3   /dev/root         
/</tt>
<br><tt>f7eabf80 f7ea3c00 proc   /proc             
/proc</tt>
<br><tt>f7eab100 f7a7ae00 usbfs  /proc/bus/usb     
/proc/bus/usb</tt>
<br><tt>f7eab880 f7eaf400 sysfs  /sys              
/sys</tt>
<br><tt>f7eab980 f7d72200 devpts /dev/devpts       
/dev/pts</tt>
<br><tt>f7eaba80 f7af5c00 tmpfs  /dev/shm          
/dev/shm</tt>
<br><tt>f7eabb00 f7029400 ext3   /dev/sda3         
/mnt/sda3</tt>
<br><tt>f7eabb80 f7209a00 binfmt_misc none         
/proc/sys/fs/binfmt_misc</tt>
<br><tt>f7eabd80 f7af6c00 rpc_pipefs sunrpc        
/var/lib/nfs/rpc_pipefs</tt>
<br><tt>f7eabc00 f6de5400 autofs automount(pid2367) /net</tt>
<br><tt>f6e44780 c1f63000 autofs automount(pid2357) /misc</tt>
<br><tt>f6e44200 f6c4d800 nfsd   nfsd              
/proc/fs/nfsd</tt>
<br><tt>crash> mount -n 3287</tt>
<br><tt>VFSMOUNT SUPERBLK TYPE   DEVNAME           
DIRNAME</tt>
<br><tt>f6e44180 f7eaf200 rootfs rootfs            
/</tt>
<br><tt>f6e44700 f7ce5600 ext3   /dev/root         
/</tt>
<br><tt>f6e44680 f784d800 tmpfs  /dev              
/dev</tt>
<br><tt>f6e44600 f7d72200 devpts /dev/devpts       
/dev/pts</tt>
<br><tt>f6e44580 f7ea3c00 proc   /proc             
/proc</tt>
<br><tt>f6e44500 f7a7ae00 usbfs  /proc/bus/usb     
/proc/bus/usb</tt>
<br><tt>f6e44480 f7209a00 binfmt_misc none         
/proc/sys/fs/binfmt_misc</tt>
<br><tt>f6e44300 f7029400 ext3   /dev/sda3         
/mnt/sda3</tt>
<br><tt>f6e44280 f7af6c00 rpc_pipefs sunrpc        
/var/lib/nfs/rpc_pipefs</tt>
<br><tt>f7eaba00 f6de5400 autofs automount(pid2367) /net</tt>
<br><tt>f7eabe00 c1f63000 autofs automount(pid2357) /misc</tt>
<br><tt>crash></tt><tt></tt>
<p><tt>...and would default to pid 1's namespace if no -n [pid]</tt>
<br><tt>was entered (as it does now).</tt><tt></tt>
<p><tt>Anyway, the patch looks OK upon first glance.  I'll test</tt>
<br><tt>it out to make sure it doesn't break anything, and if</tt>
<br><tt>OK, I'll queue it for the next release.</tt><tt></tt>
<p><tt>Thanks,</tt>
<br><tt>  Dave</tt>
<br><tt></tt> </html>