Skip to contentSkip to conversation

man ip-netns: Fix syntax in default ns process, indent's

PATCH Superseded Vadim Kochan 2 participants 3 messages Mar 21, 2015

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 man ip-netns: Fix syntax in default ns process, indent's

From: Vadim Kochan <[email protected]>

---
 man/man8/ip-netns.8 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
man/man8/ip-netns.8 +3 -1
index d496675..fe885db 100644
@@ -46,7 +46,7 @@ ip-netns \- process network namespace management
 A network namespace is logically another copy of the network stack,
 with its own routes, firewall rules, and network devices.
 
-By default process inherits network namespace from its parent. Initially all
+By default a process inherits network namespace from its parent. Initially all
 the processes share the same default network namespace from the init process.
 
 By convention a named network namespace is an object at
@@ -103,10 +103,12 @@ option was specified then all the network namespace names will be removed.
 It is possible to lose the physical device when it was moved to netns and
 then this netns was deleted with a running process:
 
+.RS
     $ ip netns add net0
     $ ip link set dev eth0 netns net0
     $ ip netns exec net0 SOME_PROCESS_IN_BACKGROUND
     $ ip netns del net0
+.RE
 
 and eth0 will appear in the default netns only after SOME_PROCESS_IN_BACKGROUND
 will exit or will be killed. To prevent this the processes running in net0
Signature · 1 line
2.3.1
#1 lore raw
Quoted 21 lines · Vadim Kochan

From: Vadim Kochan <[email protected]>

---
 man/man8/ip-netns.8 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
man/man8/ip-netns.8 +1 -1
index d496675..fe885db 100644
@@ -46,7 +46,7 @@ ip-netns \- process network namespace management
 A network namespace is logically another copy of the network stack,
 with its own routes, firewall rules, and network devices.
 
-By default process inherits network namespace from its parent. Initially all
+By default a process inherits network namespace from its parent. Initially all
 the processes share the same default network namespace from the init process.
 
 By convention a named network namespace is an object at

man/man8/ip-netns.8 option was specified then all the network namespace names will be removed. · line 111

Quoted 9 lines
man/man8/ip-netns.8 +2 -0
@@ -103,10 +103,12 @@ option was specified then all the network namespace names will be removed.
 It is possible to lose the physical device when it was moved to netns and
 then this netns was deleted with a running process:
 
+.RS
     $ ip netns add net0
     $ ip link set dev eth0 netns net0
     $ ip netns exec net0 SOME_PROCESS_IN_BACKGROUND
     $ ip netns del net0
+.RE

You should delete the leading spaces as well.

Ben.

Quoted 2 lines
man/man8/ip-netns.8 +0 -0
 and eth0 will appear in the default netns only after SOME_PROCESS_IN_BACKGROUND
 will exit or will be killed. To prevent this the processes running in net0
Signature · 2 lines
Ben Hutchings
If you seem to know what you are doing, you'll be given more to do.
#2 lore raw
Quoted 34 lines · Ben Hutchings
Quoted 21 lines · Vadim Kochan

From: Vadim Kochan <[email protected]>

---
 man/man8/ip-netns.8 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
man/man8/ip-netns.8 +1 -1
index d496675..fe885db 100644
@@ -46,7 +46,7 @@ ip-netns \- process network namespace management
 A network namespace is logically another copy of the network stack,
 with its own routes, firewall rules, and network devices.
 
-By default process inherits network namespace from its parent. Initially all
+By default a process inherits network namespace from its parent. Initially all
 the processes share the same default network namespace from the init process.
 
 By convention a named network namespace is an object at

man/man8/ip-netns.8 option was specified then all the network namespace names will be removed. · line 111

Quoted 9 lines
man/man8/ip-netns.8 +2 -0
@@ -103,10 +103,12 @@ option was specified then all the network namespace names will be removed.
 It is possible to lose the physical device when it was moved to netns and
 then this netns was deleted with a running process:
 
+.RS
     $ ip netns add net0
     $ ip link set dev eth0 netns net0
     $ ip netns exec net0 SOME_PROCESS_IN_BACKGROUND
     $ ip netns del net0
+.RE

You should delete the leading spaces as well.

Quoted 8 lines

Ben.

Quoted 2 lines
man/man8/ip-netns.8 +0 -0
 and eth0 will appear in the default netns only after SOME_PROCESS_IN_BACKGROUND
 will exit or will be killed. To prevent this the processes running in net0
Signature · 2 lines
Ben Hutchings
If you seem to know what you are doing, you'll be given more to do.

Hi,

Would it be OK?

.RS 10

$ ip netns add net0
.RE
.RS 10
$ ip link set dev eth0 netns net0
.RE
.RS 10
$ ip netns exec net0 SOME_PROCESS_IN_BACKGROUND
.RE
.RS 10
$ ip netns del net0
.RE

Thanks,