netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2] man ip-netns: Fix syntax in default ns process, indent's
@ 2015-03-21  5:32 Vadim Kochan
  2015-03-21 10:54 ` Ben Hutchings
  0 siblings, 1 reply; 3+ messages in thread
From: Vadim Kochan @ 2015-03-21  5:32 UTC (permalink / raw)
  To: netdev; +Cc: ben, Vadim Kochan

From: Vadim Kochan <vadim4j@gmail.com>

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
---
 man/man8/ip-netns.8 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/man/man8/ip-netns.8 b/man/man8/ip-netns.8
index d496675..fe885db 100644
--- a/man/man8/ip-netns.8
+++ b/man/man8/ip-netns.8
@@ -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
-- 
2.3.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH iproute2] man ip-netns: Fix syntax in default ns process, indent's
  2015-03-21  5:32 [PATCH iproute2] man ip-netns: Fix syntax in default ns process, indent's Vadim Kochan
@ 2015-03-21 10:54 ` Ben Hutchings
  2015-03-21 11:46   ` Vadim Kochan
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Hutchings @ 2015-03-21 10:54 UTC (permalink / raw)
  To: Vadim Kochan; +Cc: netdev

[-- Attachment #1: Type: text/plain, Size: 1639 bytes --]

On Sat, 2015-03-21 at 07:32 +0200, Vadim Kochan wrote:
> From: Vadim Kochan <vadim4j@gmail.com>
> 
> Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
> ---
>  man/man8/ip-netns.8 | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/man/man8/ip-netns.8 b/man/man8/ip-netns.8
> index d496675..fe885db 100644
> --- a/man/man8/ip-netns.8
> +++ b/man/man8/ip-netns.8
> @@ -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

You should delete the leading spaces as well.

Ben.

>  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

-- 
Ben Hutchings
If you seem to know what you are doing, you'll be given more to do.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH iproute2] man ip-netns: Fix syntax in default ns process, indent's
  2015-03-21 10:54 ` Ben Hutchings
@ 2015-03-21 11:46   ` Vadim Kochan
  0 siblings, 0 replies; 3+ messages in thread
From: Vadim Kochan @ 2015-03-21 11:46 UTC (permalink / raw)
  To: Ben Hutchings; +Cc: Vadim Kochan, netdev

On Sat, Mar 21, 2015 at 10:54:23AM +0000, Ben Hutchings wrote:
> On Sat, 2015-03-21 at 07:32 +0200, Vadim Kochan wrote:
> > From: Vadim Kochan <vadim4j@gmail.com>
> > 
> > Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
> > ---
> >  man/man8/ip-netns.8 | 4 +++-
> >  1 file changed, 3 insertions(+), 1 deletion(-)
> > 
> > diff --git a/man/man8/ip-netns.8 b/man/man8/ip-netns.8
> > index d496675..fe885db 100644
> > --- a/man/man8/ip-netns.8
> > +++ b/man/man8/ip-netns.8
> > @@ -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
> 
> You should delete the leading spaces as well.
> 
> Ben.
> 
> >  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
> 
> -- 
> 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,

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-21 11:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-21  5:32 [PATCH iproute2] man ip-netns: Fix syntax in default ns process, indent's Vadim Kochan
2015-03-21 10:54 ` Ben Hutchings
2015-03-21 11:46   ` Vadim Kochan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).