diff options
author | xpahos <xpahos@yandex-team.ru> | 2022-02-10 16:47:21 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:21 +0300 |
commit | 52faf709473af8421da1e2ea84ae1879b16665b8 (patch) | |
tree | 2ec4264cfbc5e294ea04a7b12b9fa0b41f4d96ce /util/system | |
parent | eec632e483ae34bc211138c67434b1e0e6054ced (diff) | |
download | ydb-52faf709473af8421da1e2ea84ae1879b16665b8.tar.gz |
Restoring authorship annotation for <xpahos@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system')
-rw-r--r-- | util/system/fstat.cpp | 4 | ||||
-rw-r--r-- | util/system/fstat_ut.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/util/system/fstat.cpp b/util/system/fstat.cpp index 81e98cbc6b..5ee7930a90 100644 --- a/util/system/fstat.cpp +++ b/util/system/fstat.cpp @@ -55,7 +55,7 @@ static void MakeStat(TFileStat& st, const TSystemFStat& fs) { st.ATime = fs.st_atime; st.MTime = fs.st_mtime; st.CTime = fs.st_ctime; - st.INode = fs.st_ino; + st.INode = fs.st_ino; #else timeval tv; FileTimeToTimeval(&fs.ftCreationTime, &tv); @@ -70,7 +70,7 @@ static void MakeStat(TFileStat& st, const TSystemFStat& fs) { st.Gid = 0; st.Size = ((ui64)fs.nFileSizeHigh << 32) | fs.nFileSizeLow; st.AllocationSize = st.Size; // FIXME - st.INode = ((ui64)fs.nFileIndexHigh << 32) | fs.nFileIndexLow; + st.INode = ((ui64)fs.nFileIndexHigh << 32) | fs.nFileIndexLow; #endif } diff --git a/util/system/fstat_ut.cpp b/util/system/fstat_ut.cpp index 160ecd936e..9502d11c7d 100644 --- a/util/system/fstat_ut.cpp +++ b/util/system/fstat_ut.cpp @@ -42,7 +42,7 @@ Y_UNIT_TEST_SUITE(TestFileStat) { UNIT_ASSERT_VALUES_EQUAL(cFs.Mode, oFs.Mode); UNIT_ASSERT_VALUES_EQUAL(cFs.Uid, oFs.Uid); UNIT_ASSERT_VALUES_EQUAL(cFs.Gid, oFs.Gid); - UNIT_ASSERT_VALUES_EQUAL(cFs.INode, oFs.INode); + UNIT_ASSERT_VALUES_EQUAL(cFs.INode, oFs.INode); UNIT_ASSERT(unlink(fileName.data()) == 0); } |