[ovs-dev] [PATCH 07/11] daemon-windows: Recognize --no-chdir option for windows.

Gurucharan Shetty shettyg at nicira.com
Tue Apr 22 20:08:10 UTC 2014


On Tue, Apr 22, 2014 at 9:35 AM, Ben Pfaff <blp at nicira.com> wrote:
> On Fri, Apr 18, 2014 at 11:04:14AM -0700, Gurucharan Shetty wrote:
>> The option won't have any effect on the running of the daemon.
>> Recognizing the option lets us avoid if else conditions in unit
>> tests.
>>
>> Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
>
> The reason that Unix daemons chdir to the root, by default, is that a
> process whose current directory is on some volume prevents that volume
> from being unmounted (and on some Unix-like systems I think it also
> prevents the directory from being removed).  Is either of those an issue
> on Windows?  Should OVS chdir to the root (on all drives?) on Windows
> also?

I did not test with mount/unmount on windows. But, you cannot delete a
directory from which a program is invoked. chdir does solve that
problem. But I can't seem to think of the correct "/" equivalent on
windows (specially when I consider mounted shares etc). So I was
hoping to not do anything here till I really need it.



More information about the dev mailing list