All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH iproute2 v2] man ip-netns: Fix syntax in default ns process, indent's
@ 2015-03-21 17:51 Vadim Kochan
  2015-03-23  1:11 ` Simon Horman
  0 siblings, 1 reply; 4+ messages in thread
From: Vadim Kochan @ 2015-03-21 17:51 UTC (permalink / raw)
  To: netdev; +Cc: ben, Vadim Kochan

From: Vadim Kochan <vadim4j@gmail.com>

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
---
v2:
    Deleted leading spaces - suggested by Ben Hutchings <ben@decadent.org.uk>

 man/man8/ip-netns.8 | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/man/man8/ip-netns.8 b/man/man8/ip-netns.8
index d496675..0c3dca8 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,18 @@ 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:
 
-    $ ip netns add net0
-    $ ip link set dev eth0 netns net0
-    $ ip netns exec net0 SOME_PROCESS_IN_BACKGROUND
-    $ ip netns del net0
+.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
 
 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] 4+ messages in thread

* Re: [PATCH iproute2 v2] man ip-netns: Fix syntax in default ns process, indent's
  2015-03-21 17:51 [PATCH iproute2 v2] man ip-netns: Fix syntax in default ns process, indent's Vadim Kochan
@ 2015-03-23  1:11 ` Simon Horman
  2015-03-24  8:29   ` Vadim Kochan
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Horman @ 2015-03-23  1:11 UTC (permalink / raw)
  To: Vadim Kochan; +Cc: netdev, ben

On Sat, Mar 21, 2015 at 07:51:58PM +0200, Vadim Kochan wrote:
> From: Vadim Kochan <vadim4j@gmail.com>
> 
> Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
> ---
> v2:
>     Deleted leading spaces - suggested by Ben Hutchings <ben@decadent.org.uk>
> 
>  man/man8/ip-netns.8 | 18 +++++++++++++-----
>  1 file changed, 13 insertions(+), 5 deletions(-)
> 
> diff --git a/man/man8/ip-netns.8 b/man/man8/ip-netns.8
> index d496675..0c3dca8 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

Perhaps also s/inherits/inherits its/

>  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,18 @@ 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:
>  
> -    $ ip netns add net0
> -    $ ip link set dev eth0 netns net0
> -    $ ip netns exec net0 SOME_PROCESS_IN_BACKGROUND
> -    $ ip netns del net0
> +.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
>  
>  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
> 
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

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

* Re: [PATCH iproute2 v2] man ip-netns: Fix syntax in default ns process, indent's
  2015-03-23  1:11 ` Simon Horman
@ 2015-03-24  8:29   ` Vadim Kochan
  2015-03-24  9:20     ` Simon Horman
  0 siblings, 1 reply; 4+ messages in thread
From: Vadim Kochan @ 2015-03-24  8:29 UTC (permalink / raw)
  To: Simon Horman; +Cc: Vadim Kochan, netdev, ben

On Mon, Mar 23, 2015 at 10:11:24AM +0900, Simon Horman wrote:
> On Sat, Mar 21, 2015 at 07:51:58PM +0200, Vadim Kochan wrote:
> > From: Vadim Kochan <vadim4j@gmail.com>
> > 
> > Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
> > ---
> > v2:
> >     Deleted leading spaces - suggested by Ben Hutchings <ben@decadent.org.uk>
> > 
> >  man/man8/ip-netns.8 | 18 +++++++++++++-----
> >  1 file changed, 13 insertions(+), 5 deletions(-)
> > 
> > diff --git a/man/man8/ip-netns.8 b/man/man8/ip-netns.8
> > index d496675..0c3dca8 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
> 
> Perhaps also s/inherits/inherits its/
> 
> >  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,18 @@ 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:
> >  
> > -    $ ip netns add net0
> > -    $ ip link set dev eth0 netns net0
> > -    $ ip netns exec net0 SOME_PROCESS_IN_BACKGROUND
> > -    $ ip netns del net0
> > +.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
> >  
> >  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
> > 
> > --
> > To unsubscribe from this list: send the line "unsubscribe netdev" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > 

Hi,

So may it be like this ?

	By default a process inherits its network namespace from the parent.

or like this ?

	By default a process inherits its network namespace from its parent.

Thanks,

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

* Re: [PATCH iproute2 v2] man ip-netns: Fix syntax in default ns process, indent's
  2015-03-24  8:29   ` Vadim Kochan
@ 2015-03-24  9:20     ` Simon Horman
  0 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2015-03-24  9:20 UTC (permalink / raw)
  To: Vadim Kochan; +Cc: netdev, ben

Hi Vadim,

On Tue, Mar 24, 2015 at 10:29:24AM +0200, Vadim Kochan wrote:
> On Mon, Mar 23, 2015 at 10:11:24AM +0900, Simon Horman wrote:
> > On Sat, Mar 21, 2015 at 07:51:58PM +0200, Vadim Kochan wrote:

[snip]

> Hi,
> 
> So may it be like this ?
> 
> 	By default a process inherits its network namespace from the parent.
> 
> or like this ?
> 
> 	By default a process inherits its network namespace from its parent.

The second option seems best to me.

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

end of thread, other threads:[~2015-03-24  9:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-21 17:51 [PATCH iproute2 v2] man ip-netns: Fix syntax in default ns process, indent's Vadim Kochan
2015-03-23  1:11 ` Simon Horman
2015-03-24  8:29   ` Vadim Kochan
2015-03-24  9:20     ` Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.