Cygwin: log disabling posix semantics
Add log when workaround occurs Signed-off-by: Yoshinao Muramatsu <ysno@ac.auone-net.jp>
This commit is contained in:
parent
7666e248dd
commit
87ab6c7b26
|
@ -737,8 +737,12 @@ unlink_nt (path_conv &pc, bool shareable)
|
||||||
on a bind mounted fs in hyper-v container. Falling back too. */
|
on a bind mounted fs in hyper-v container. Falling back too. */
|
||||||
if (status != STATUS_CANNOT_DELETE
|
if (status != STATUS_CANNOT_DELETE
|
||||||
&& status != STATUS_INVALID_PARAMETER)
|
&& status != STATUS_INVALID_PARAMETER)
|
||||||
|
{
|
||||||
|
debug_printf ("NtSetInformationFile returns %y "
|
||||||
|
"with posix semantics. Disable it and retry.", status);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* If the R/O attribute is set, we have to open the file with
|
/* If the R/O attribute is set, we have to open the file with
|
||||||
FILE_WRITE_ATTRIBUTES to be able to remove this flags before trying
|
FILE_WRITE_ATTRIBUTES to be able to remove this flags before trying
|
||||||
|
@ -2670,6 +2674,8 @@ skip_pre_W10_checks:
|
||||||
on a bind mounted file system in hyper-v container
|
on a bind mounted file system in hyper-v container
|
||||||
with FILE_RENAME_POSIX_SEMANTICS.
|
with FILE_RENAME_POSIX_SEMANTICS.
|
||||||
Disable the use_posix semntics flag and retry. */
|
Disable the use_posix semntics flag and retry. */
|
||||||
|
debug_printf ("NtSetInformationFile failed with posix semantics. "
|
||||||
|
"Disable it and retry.");
|
||||||
use_posix_semantics = 0;
|
use_posix_semantics = 0;
|
||||||
goto ignore_posix_semantics_retry;
|
goto ignore_posix_semantics_retry;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue