<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/util/system/fstat_ut.cpp, branch oidc-1.2.3</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=oidc-1.2.3</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=oidc-1.2.3'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2024-09-05T17:17:10Z</updated>
<entry>
<title>FixNamespaceComments in /util</title>
<updated>2024-09-05T17:17:10Z</updated>
<author>
<name>dmasloff</name>
<email>dmasloff@yandex-team.com</email>
</author>
<published>2024-09-05T17:05:47Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=74184a40c15dc0649a769d9754d0ce7efb44db04'/>
<id>urn:sha1:74184a40c15dc0649a769d9754d0ce7efb44db04</id>
<content type='text'>
FixNamespaceComments in /util
bb9152570d7c258798644ead5a59f604de05ef3b
</content>
</entry>
<entry>
<title>Set SpacesInLineCommentPrefix to 1 in /util</title>
<updated>2024-08-17T20:43:45Z</updated>
<author>
<name>dmasloff</name>
<email>dmasloff@yandex-team.com</email>
</author>
<published>2024-08-17T20:33:42Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=69340f4614e853b9319df4b454ab7497711ee3cd'/>
<id>urn:sha1:69340f4614e853b9319df4b454ab7497711ee3cd</id>
<content type='text'>
Set SpacesInLineCommentPrefix to 1 in /util
3853f9ec5143722c1bebd8dc0ffc9b61a6c17657
</content>
</entry>
<entry>
<title>[util] fix fstat for archive directories on windows</title>
<updated>2022-02-17T19:22:02Z</updated>
<author>
<name>kikht</name>
<email>kikht@yandex-team.ru</email>
</author>
<published>2022-02-17T19:22:02Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=a4e5577781d9f1162779286558a90252430f6200'/>
<id>urn:sha1:a4e5577781d9f1162779286558a90252430f6200</id>
<content type='text'>
Currently TFileStat has a bunch of problems on Windows:
1. Mode computation ORs different types, but file attributes it checks are not mutually exclusive. E.g. it is possible for directory to have both `FILE_ATTRIBUTE_DIRECTORY` and `FILE_ATTRIBUTE_ARCHIVE`, but it will currently lead to invalid `_S_IFDIR | _S_IFREG` mode.
2. Any file with `FILE_ATTRIBUTE_REPARSE_POINT` flag is considered to be symlink. But there are many other types of reparse points even user-defined ones. For more info see https://docs.microsoft.com/en-us/windows/win32/fileio/reparse-point-tags

To fix all this we do the following:
1. Add `ReparseTag` field to `TSystemFStat` and fill it for reparse points in `GetStatByHandle`.
2. Refactor `GetWinFileType` out of `GetFileMode` to ensure that we always select only single `S_IFMT` value.
3. Pass reparse tag value into `GetWinFileType` and select `S_IFLNK` only for `IO_REPARSE_TAG_SYMLINK` and `IO_REPARSE_TAG_MOUNT_POINT` tags. The latter one is a bit strange, but this behaviour is aligned with current implementation of `WinReadLink`.
4. Factor `ReadReparsePoint` out of `WinReadLink`. This function uses `DeviceIoControl` to read reparse point data into structures copied from WDK.
5. Add `WinReadReparseTag` that uses `ReadReparsePoint` to extract reparse point tag. We use this approach instead of MSDN-recommended `FindFirstFile` because latter requires file path, but we have file handle at this point. AFAIK golang and python use similar approach for this.
6. Add test for archived directory case.
7. Make symlink nofollow tests run only when symlink creation is possible for current user.

Discovered in https://st.yandex-team.ru/ARC-3931

ref:4f6735817b9f85f3351a1021a56dd7eb4606bd65
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;muzykantov@yandex-team.ru&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:51:51Z</updated>
<author>
<name>muzykantov</name>
<email>muzykantov@yandex-team.ru</email>
</author>
<published>2022-02-10T13:51:51Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=fffc5498228bac1ad41ed40b9b7f5cb453796ba8'/>
<id>urn:sha1:fffc5498228bac1ad41ed40b9b7f5cb453796ba8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;muzykantov@yandex-team.ru&gt;. Commit 1 of 2.</title>
<updated>2022-02-10T13:51:51Z</updated>
<author>
<name>muzykantov</name>
<email>muzykantov@yandex-team.ru</email>
</author>
<published>2022-02-10T13:51:51Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=8057fea3b8c36263516f0a7e1a01fdf7380764a4'/>
<id>urn:sha1:8057fea3b8c36263516f0a7e1a01fdf7380764a4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for Vasily Gerasimov &lt;UgnineSirdis@gmail.com&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:49:10Z</updated>
<author>
<name>Vasily Gerasimov</name>
<email>UgnineSirdis@gmail.com</email>
</author>
<published>2022-02-10T13:49:10Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=1eb755fbca92172a6aec2f57371b2b3a19dfab43'/>
<id>urn:sha1:1eb755fbca92172a6aec2f57371b2b3a19dfab43</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for Vasily Gerasimov &lt;UgnineSirdis@gmail.com&gt;. Commit 1 of 2.</title>
<updated>2022-02-10T13:49:09Z</updated>
<author>
<name>Vasily Gerasimov</name>
<email>UgnineSirdis@gmail.com</email>
</author>
<published>2022-02-10T13:49:09Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=6cdc8f140213c595e4ad38bc3d97fcef1146b8c3'/>
<id>urn:sha1:6cdc8f140213c595e4ad38bc3d97fcef1146b8c3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;xpahos@yandex-team.ru&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:47:21Z</updated>
<author>
<name>xpahos</name>
<email>xpahos@yandex-team.ru</email>
</author>
<published>2022-02-10T13:47:21Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=da8fe75e5a837ef6a6e8a21f96dcee631e8b5a1e'/>
<id>urn:sha1:da8fe75e5a837ef6a6e8a21f96dcee631e8b5a1e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;xpahos@yandex-team.ru&gt;. Commit 1 of 2.</title>
<updated>2022-02-10T13:47:21Z</updated>
<author>
<name>xpahos</name>
<email>xpahos@yandex-team.ru</email>
</author>
<published>2022-02-10T13:47:21Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=52faf709473af8421da1e2ea84ae1879b16665b8'/>
<id>urn:sha1:52faf709473af8421da1e2ea84ae1879b16665b8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Restoring authorship annotation for &lt;yazevnul@yandex-team.ru&gt;. Commit 2 of 2.</title>
<updated>2022-02-10T13:46:48Z</updated>
<author>
<name>yazevnul</name>
<email>yazevnul@yandex-team.ru</email>
</author>
<published>2022-02-10T13:46:48Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=9abfb1a53b7f7b791444d1378e645d8fad9b06ed'/>
<id>urn:sha1:9abfb1a53b7f7b791444d1378e645d8fad9b06ed</id>
<content type='text'>
</content>
</entry>
</feed>
