RE: [PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-21 Thread Yue Zhang (OSTC DEV)
> From: Tom Gundersen [mailto:t...@jklm.no] > Sent: Monday, July 21, 2014 5:42 PM > > On Fri, Jul 18, 2014 at 12:55 PM, Yue Zhang wrote: > > From: Yue Zhang > > > > This patch addresses the comment from Olaf Hering and Greg KH > > for a previous commi

RE: [PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-21 Thread Yue Zhang (OSTC DEV)
> From: Richard Weinberger [mailto:rich...@nod.at] > Sent: Monday, July 21, 2014 4:18 PM > > Yue, > > Am 21.07.2014 10:05, schrieb Yue Zhang (OSTC DEV): > > The problem of systemd implementation is that in different distros, the > > ways > > to restar

RE: [PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-21 Thread Yue Zhang (OSTC DEV)
> From: Richard Weinberger [mailto:rich...@nod.at] > Sent: Monday, July 21, 2014 2:55 PM > > Yue, > > Am 21.07.2014 04:44, schrieb Yue Zhang (OSTC DEV): > >> From: Richard Weinberger [mailto:richard.weinber...@gmail.com] > >> Why 10? Is this a random number

RE: [PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-21 Thread Yue Zhang (OSTC DEV)
From: Richard Weinberger [mailto:rich...@nod.at] Sent: Monday, July 21, 2014 2:55 PM Yue, Am 21.07.2014 04:44, schrieb Yue Zhang (OSTC DEV): From: Richard Weinberger [mailto:richard.weinber...@gmail.com] Why 10? Is this a random number which works by accident for ifplugd? What about

RE: [PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-21 Thread Yue Zhang (OSTC DEV)
From: Richard Weinberger [mailto:rich...@nod.at] Sent: Monday, July 21, 2014 4:18 PM Yue, Am 21.07.2014 10:05, schrieb Yue Zhang (OSTC DEV): The problem of systemd implementation is that in different distros, the ways to restart service are different. Propagating the event

RE: [PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-21 Thread Yue Zhang (OSTC DEV)
From: Tom Gundersen [mailto:t...@jklm.no] Sent: Monday, July 21, 2014 5:42 PM On Fri, Jul 18, 2014 at 12:55 PM, Yue Zhang yue...@microsoft.com wrote: From: Yue Zhang yue...@microsoft.com This patch addresses the comment from Olaf Hering and Greg KH for a previous commit 3a494e710367

RE: [PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-20 Thread Yue Zhang (OSTC DEV)
> From: Varka Bhadram [mailto:varkabhad...@gmail.com] > Sent: Friday, July 18, 2014 6:13 PM > > On 07/18/2014 04:25 PM, Yue Zhang wrote: > > @@ -816,8 +816,21 @@ static void netvsc_link_change(struct work_struct > *w) > > > > rtnl_

RE: [PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-20 Thread Yue Zhang (OSTC DEV)
> From: Richard Weinberger [mailto:richard.weinber...@gmail.com] > Sent: Friday, July 18, 2014 9:41 PM > > On Fri, Jul 18, 2014 at 12:55 PM, Yue Zhang wrote: > > From: Yue Zhang > > > > This patch addresses the comment from Olaf Hering and Greg KH > > for a p

RE: [PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-20 Thread Yue Zhang (OSTC DEV)
From: Richard Weinberger [mailto:richard.weinber...@gmail.com] Sent: Friday, July 18, 2014 9:41 PM On Fri, Jul 18, 2014 at 12:55 PM, Yue Zhang yue...@microsoft.com wrote: From: Yue Zhang yue...@microsoft.com This patch addresses the comment from Olaf Hering and Greg KH for a previous

RE: [PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-20 Thread Yue Zhang (OSTC DEV)
From: Varka Bhadram [mailto:varkabhad...@gmail.com] Sent: Friday, July 18, 2014 6:13 PM On 07/18/2014 04:25 PM, Yue Zhang wrote: @@ -816,8 +816,21 @@ static void netvsc_link_change(struct work_struct *w) rtnl_unlock(); - if (refresh) - call_usermodehelper(argv[0

[PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-18 Thread Yue Zhang
From: Yue Zhang This patch addresses the comment from Olaf Hering and Greg KH for a previous commit 3a494e710367 ("hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event") In previous solution, the driver calls "network restart" to force a DHCP renew when the host is b

[PATCH] Hyperv: Trigger DHCP renew after host hibernation

2014-07-18 Thread Yue Zhang
From: Yue Zhang yue...@microsoft.com This patch addresses the comment from Olaf Hering and Greg KH for a previous commit 3a494e710367 (hyperv: Add handler for RNDIS_STATUS_NETWORK_CHANGE event) In previous solution, the driver calls network restart to force a DHCP renew when the host is back

[PATCH v3] Tools: hv: fix file overwriting of hv_fcopy_daemon

2014-06-27 Thread Yue Zhang
From: Yue Zhang hv_fcopy_daemon fails to overwrite a file if the target file already exits. Add O_TRUNC flag on opening. Signed-off-by: Yue Zhang --- tools/hv/hv_fcopy_daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv

RE: [PATCH] Tools: hv: fix file overwriting of hv_fcopy_daemon

2014-06-27 Thread Yue Zhang (OSTC DEV)
> -Original Message- > From: Greg KH [mailto:g...@kroah.com] > > From: Yue Zhang > > > > hv_fcopy_daemon fails to overwrite a file if the target file already > > exits. > > > > Add O_TRUNC flag on opening. > > > > MS-TFS: 341345 >

[PATCH v2] Tools: hv: fix file overwriting of hv_fcopy_daemon

2014-06-27 Thread Yue Zhang
From: Yue Zhang hv_fcopy_daemon fails to overwrite a file if the target file already exits. Add O_TRUNC flag on opening. Signed-off-by: Yue Zhang --- tools/hv/hv_fcopy_daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv

[PATCH] Tools: hv: fix file overwriting of hv_fcopy_daemon

2014-06-27 Thread Yue Zhang
From: Yue Zhang hv_fcopy_daemon fails to overwrite a file if the target file already exits. Add O_TRUNC flag on opening. MS-TFS: 341345 Signed-off-by: Yue Zhang --- tools/hv/hv_fcopy_daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/hv/hv_fcopy_daemon.c b

[PATCH] Tools: hv: fix file overwriting of hv_fcopy_daemon

2014-06-27 Thread Yue Zhang
From: Yue Zhang yue...@microsoft.com hv_fcopy_daemon fails to overwrite a file if the target file already exits. Add O_TRUNC flag on opening. MS-TFS: 341345 Signed-off-by: Yue Zhang yue...@microsoft.com --- tools/hv/hv_fcopy_daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH v2] Tools: hv: fix file overwriting of hv_fcopy_daemon

2014-06-27 Thread Yue Zhang
From: Yue Zhang yue...@microsoft.com hv_fcopy_daemon fails to overwrite a file if the target file already exits. Add O_TRUNC flag on opening. Signed-off-by: Yue Zhang yue...@microsoft.com --- tools/hv/hv_fcopy_daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools

RE: [PATCH] Tools: hv: fix file overwriting of hv_fcopy_daemon

2014-06-27 Thread Yue Zhang (OSTC DEV)
-Original Message- From: Greg KH [mailto:g...@kroah.com] From: Yue Zhang yue...@microsoft.com hv_fcopy_daemon fails to overwrite a file if the target file already exits. Add O_TRUNC flag on opening. MS-TFS: 341345 It's as if the people on your team don't talk to each

[PATCH v3] Tools: hv: fix file overwriting of hv_fcopy_daemon

2014-06-27 Thread Yue Zhang
From: Yue Zhang yue...@microsoft.com hv_fcopy_daemon fails to overwrite a file if the target file already exits. Add O_TRUNC flag on opening. Signed-off-by: Yue Zhang yue...@microsoft.com --- tools/hv/hv_fcopy_daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools

RE: [PATCH] Tools: hv: fix file overwriting of hv_fcopy_daemon

2014-06-26 Thread Yue Zhang (OSTC DEV)
> -Original Message- > From: KY Srinivasan > > -Original Message- > > From: Yue Zhang [mailto:yue...@microsoft.com] > > hv_fcopy_daemon fails to overwrite a file if the target file already exits. > > > > Add O_TRUNC flag on openi

[PATCH] Tools: hv: fix file overwriting of hv_fcopy_daemon

2014-06-26 Thread Yue Zhang
From: Yue Zhang hv_fcopy_daemon fails to overwrite a file if the target file already exits. Add O_TRUNC flag on opening. Signed-off-by: Yue Zhang --- tools/hv/hv_fcopy_daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv

[PATCH] Tools: hv: fix file overwriting of hv_fcopy_daemon

2014-06-26 Thread Yue Zhang
From: Yue Zhang yue...@microsoft.com hv_fcopy_daemon fails to overwrite a file if the target file already exits. Add O_TRUNC flag on opening. Signed-off-by: Yue Zhang yue...@microsoft.com --- tools/hv/hv_fcopy_daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools

RE: [PATCH] Tools: hv: fix file overwriting of hv_fcopy_daemon

2014-06-26 Thread Yue Zhang (OSTC DEV)
-Original Message- From: KY Srinivasan -Original Message- From: Yue Zhang [mailto:yue...@microsoft.com] hv_fcopy_daemon fails to overwrite a file if the target file already exits. Add O_TRUNC flag on opening. Signed-off-by: Yue Zhang yue...@microsoft.com