<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/util, branch 22.2.38</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=22.2.38</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=22.2.38'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2022-02-22T00:31:52Z</updated>
<entry>
<title>rm unused include</title>
<updated>2022-02-22T00:31:52Z</updated>
<author>
<name>tobo</name>
<email>tobo@yandex-team.ru</email>
</author>
<published>2022-02-22T00:31:52Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=75c99e1ca6e2eb6accf7c91127e4a76d346228f9'/>
<id>urn:sha1:75c99e1ca6e2eb6accf7c91127e4a76d346228f9</id>
<content type='text'>
ref:f0f0572f52d7977841789105c6b51d4ca5ea1382
</content>
</entry>
<entry>
<title>Properly attribute err.h replacements as [[noreturn]]</title>
<updated>2022-02-19T10:10:22Z</updated>
<author>
<name>thegeorg</name>
<email>thegeorg@yandex-team.ru</email>
</author>
<published>2022-02-19T10:10:22Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=7d7953cb46099a2517822b5832d49351eeecbde1'/>
<id>urn:sha1:7d7953cb46099a2517822b5832d49351eeecbde1</id>
<content type='text'>
ref:e86419934a6858c3f36f45e15d1e42cc501ea395
</content>
</entry>
<entry>
<title>pass string by reference, rm unused include</title>
<updated>2022-02-19T01:55:43Z</updated>
<author>
<name>tobo</name>
<email>tobo@yandex-team.ru</email>
</author>
<published>2022-02-19T01:55:43Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=ac7edc66fd1503d44744fedde420ad08cdebd1a9'/>
<id>urn:sha1:ac7edc66fd1503d44744fedde420ad08cdebd1a9</id>
<content type='text'>
ref:b2a9abb354b18c7a8d339a26c1e23fba39e48c06
</content>
</entry>
<entry>
<title>intermediate changes</title>
<updated>2022-02-18T12:49:59Z</updated>
<author>
<name>arcadia-devtools</name>
<email>arcadia-devtools@yandex-team.ru</email>
</author>
<published>2022-02-18T12:49:59Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=b4cb34dfb2619f594d82e512fd9ff7fc97400133'/>
<id>urn:sha1:b4cb34dfb2619f594d82e512fd9ff7fc97400133</id>
<content type='text'>
ref:1a0585d83f27cb6fb5b9c4f68a08177e10faf3b3
</content>
</entry>
<entry>
<title>introduce util/digest/city_ut.cpp</title>
<updated>2022-02-18T08:43:49Z</updated>
<author>
<name>gleb-kov</name>
<email>gleb-kov@yandex-team.ru</email>
</author>
<published>2022-02-18T08:43:49Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=f7134d2525269ea8412b3bf0736239fbfd545a2e'/>
<id>urn:sha1:f7134d2525269ea8412b3bf0736239fbfd545a2e</id>
<content type='text'>
ref:2bd6e26cda5245c96d0b2f3c326dd13e0827c326
</content>
</entry>
<entry>
<title>IGNIETFERRO-1975, BIGRT-39 [RESUBMIT]: add TBackTrace::FromCurrentException() to CurrentExceptionMessage()</title>
<updated>2022-02-17T21:11:31Z</updated>
<author>
<name>svkrasnov</name>
<email>svkrasnov@yandex-team.ru</email>
</author>
<published>2022-02-17T21:11:31Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=5d9b03f7d5e4d38860ff05886839b0224222da3e'/>
<id>urn:sha1:5d9b03f7d5e4d38860ff05886839b0224222da3e</id>
<content type='text'>
ref:8d5b72512d2b80cfd1ae859a4175cc92cf32a99a
</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>TShellCommand::TImpl via TShellCommandOptions</title>
<updated>2022-02-17T12:58:20Z</updated>
<author>
<name>gleb-kov</name>
<email>gleb-kov@yandex-team.ru</email>
</author>
<published>2022-02-17T12:58:20Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=b3e69438ecdcb34935c6731682f072368e7eafda'/>
<id>urn:sha1:b3e69438ecdcb34935c6731682f072368e7eafda</id>
<content type='text'>
ref:f149c0bc76521a1273f6a2c155f2bd116141b1eb
</content>
</entry>
<entry>
<title>util unittests: replace try-catch-UNIT_ASSERT via UNIT_ASSERT_EXCEPTION</title>
<updated>2022-02-16T17:08:53Z</updated>
<author>
<name>gleb-kov</name>
<email>gleb-kov@yandex-team.ru</email>
</author>
<published>2022-02-16T17:08:53Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=76cbe125b7d39dca64a0de7b86eee37fd575e4df'/>
<id>urn:sha1:76cbe125b7d39dca64a0de7b86eee37fd575e4df</id>
<content type='text'>
ref:f59ddae7dbb42f5fa999e6071769f709e8b80b85
</content>
</entry>
<entry>
<title>Rollback: r9145043</title>
<updated>2022-02-15T19:49:52Z</updated>
<author>
<name>robot-srch-releaser</name>
<email>robot-srch-releaser@yandex-team.ru</email>
</author>
<published>2022-02-15T19:49:52Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=0bd0e5d1ab192e2782657cb05a36637ccb42ed57'/>
<id>urn:sha1:0bd0e5d1ab192e2782657cb05a36637ccb42ed57</id>
<content type='text'>
 [diff-resolver:svkrasnov]  Sandbox task: https://sandbox.yandex-team.ru/task/1216524490/view
Task author: omakovski@
Description: Revert 9145043

Note: mandatory check (NEED_CHECK) was skipped
ref:dbe6517dcb523875d1e5de010069988b428c98bb
</content>
</entry>
</feed>
