Обсуждение: Re: Permission denied on fsync / Win32 (was right sibling is not next child)

Поиск
Список
Период
Сортировка

Re: Permission denied on fsync / Win32 (was right sibling is not next child)

От
"Magnus Hagander"
Дата:
> >   - The file system is NTFS
>=20
> OK, anyone know anything about permissions on NTFS?

Yes. What do you need to know ;-)

BTW, win32 sometimes has a bad habit of returning access denied for
other things as well - in some caes you can get access denied instead of
sharing violation, and you can often get it from AV and firewalls and
such.

//Magnus

Re: Permission denied on fsync / Win32 (was right sibling is not next child)

От
Tom Lane
Дата:
"Magnus Hagander" <mha@sollentuna.net> writes:
> BTW, win32 sometimes has a bad habit of returning access denied for
> other things as well - in some caes you can get access denied instead of
> sharing violation, and you can often get it from AV and firewalls and
> such.

Looking at the fsync code in md.c, I note that it's designed to disregard
file-not-found (ENOENT).  Are there any cases in which win32 might
return EPERM for scenarios that a sane person would call file-not-found?

            regards, tom lane