Revision 9c3ecfe3

View differences:

mininet/node.py
745 745
        for directory in self.privateDirs:
746 746
            if isinstance( directory, tuple ):
747 747
                # mount given private directory
748
                privateDir = directory[ 1 ] %self.__dict__ 
748
                privateDir = directory[ 1 ] % self.__dict__ 
749 749
                mountPoint = directory[ 0 ]
750
                self.cmd( 'mkdir -p %s' %privateDir )
751
                self.cmd( 'mkdir -p %s' %mountPoint )
752
                self.cmd( 'mount --bind %s %s' %( privateDir, mountPoint ) )
750
                self.cmd( 'mkdir -p %s' % privateDir )
751
                self.cmd( 'mkdir -p %s' % mountPoint )
752
                self.cmd( 'mount --bind %s %s' %
753
                               ( privateDir, mountPoint ) )
753 754
            else:
754 755
                # mount temporary filesystem on directory
755
                self.cmd( 'mkdir -p %s' %directory ) 
756
                self.cmd( 'mount -n -t tmpfs tmpfs %s' %directory )
756
                self.cmd( 'mkdir -p %s' % directory ) 
757
                self.cmd( 'mount -n -t tmpfs tmpfs %s' % directory )
757 758

  
758 759

  
759 760

  
mnexec.c
133 133
                perror("mount");
134 134
                return 1;
135 135
            }
136

  
137 136
            break;
138 137
        case 'p':
139 138
            /* print pid */
......
163 162
                perror("setns");
164 163
                return 1;
165 164
            }
166

  
167

  
168 165
            break;
169 166
        case 'g':
170 167
            /* Attach to cgroup */

Also available in: Unified diff