Home | History | Annotate | Download | only in cloud

Lines Matching defs:stat

53                    0 /* stat cache max age */, 0 /* stat cache max entries */,
94 0 /* stat cache max age */, 0 /* stat cache max entries */,
147 0 /* stat cache max age */, 0 /* stat cache max entries */,
221 0 /* stat cache max age */, 0 /* stat cache max entries */,
262 0 /* stat cache max age */, 0 /* stat cache max entries */,
304 0 /* stat cache max age */, 0 /* stat cache max entries */,
346 0 /* stat cache max age */, 0 /* stat cache max entries */,
421 0 /* stat cache max age */, 0 /* stat cache max entries */,
477 0 /* stat cache max age */, 0 /* stat cache max entries */,
561 0 /* stat cache max age */, 0 /* stat cache max entries */,
617 0 /* stat cache max age */, 0 /* stat cache max entries */,
647 0 /* stat cache max age */, 0 /* stat cache max entries */,
691 0 /* stat cache max age */, 0 /* stat cache max entries */,
724 0 /* stat cache max age */, 0 /* stat cache max entries */,
756 0 /* stat cache max age */, 0 /* stat cache max entries */,
776 0 /* stat cache max age */, 0 /* stat cache max entries */,
799 0 /* stat cache max age */, 0 /* stat cache max entries */,
828 0 /* stat cache max age */, 0 /* stat cache max entries */,
853 0 /* stat cache max age */, 0 /* stat cache max entries */,
882 0 /* stat cache max age */, 0 /* stat cache max entries */,
908 0 /* stat cache max age */, 0 /* stat cache max entries */,
947 3600 /* stat cache max age */, 0 /* stat cache max entries */,
952 // The stat cache will ensure that repeated lookups don't trigger additional
972 0 /* stat cache max age */, 0 /* stat cache max entries */,
999 0 /* stat cache max age */, 0 /* stat cache max entries */,
1027 0 /* stat cache max age */, 0 /* stat cache max entries */,
1054 0 /* stat cache max age */, 0 /* stat cache max entries */,
1078 0 /* stat cache max age */, 0 /* stat cache max entries */,
1102 0 /* stat cache max age */, 0 /* stat cache max entries */,
1142 0 /* stat cache max age */, 0 /* stat cache max entries */,
1168 0 /* stat cache max age */, 0 /* stat cache max entries */,
1195 0 /* stat cache max age */, 0 /* stat cache max entries */,
1223 0 /* stat cache max age */, 0 /* stat cache max entries */,
1248 0 /* stat cache max age */, 0 /* stat cache max entries */,
1273 0 /* stat cache max age */, 0 /* stat cache max entries */,
1290 0 /* stat cache max age */, 0 /* stat cache max entries */,
1323 0 /* stat cache max age */, 0 /* stat cache max entries */,
1365 0 /* stat cache max age */, 0 /* stat cache max entries */,
1415 0 /* stat cache max age */, 0 /* stat cache max entries */,
1441 0 /* stat cache max age */, 0 /* stat cache max entries */,
1462 0 /* stat cache max age */, 0 /* stat cache max entries */,
1490 0 /* stat cache max age */, 0 /* stat cache max entries */,
1509 0 /* stat cache max age */, 0 /* stat cache max entries */,
1530 0 /* stat cache max age */, 0 /* stat cache max entries */,
1552 0 /* stat cache max age */, 0 /* stat cache max entries */,
1569 0 /* stat cache max age */, 0 /* stat cache max entries */,
1654 0 /* stat cache max age */, 0 /* stat cache max entries */,
1726 0 /* stat cache max age */, 0 /* stat cache max entries */,
1799 0 /* stat cache max age */, 0 /* stat cache max entries */,
1840 0 /* stat cache max age */, 0 /* stat cache max entries */,
1864 0 /* stat cache max age */, 0 /* stat cache max entries */,
1870 FileStatistics stat;
1871 TF_EXPECT_OK(fs.Stat("gs://bucket/file.txt", &stat));
1872 EXPECT_EQ(1010, stat.length);
1873 EXPECT_NEAR(1461971724896, stat.mtime_nsec / 1000 / 1000, 1);
1874 EXPECT_FALSE(stat.is_directory);
1897 0 /* stat cache max age */, 0 /* stat cache max entries */,
1903 FileStatistics stat;
1904 TF_EXPECT_OK(fs.Stat("gs://bucket/subfolder", &stat));
1905 EXPECT_EQ(0, stat.length);
1906 EXPECT_EQ(0, stat.mtime_nsec);
1907 EXPECT_TRUE(stat.is_directory);
1929 0 /* stat cache max age */, 0 /* stat cache max entries */,
1935 FileStatistics stat;
1936 EXPECT_EQ(error::Code::NOT_FOUND, fs.Stat("gs://bucket/path", &stat).code());
1949 0 /* stat cache max age */, 0 /* stat cache max entries */,
1955 FileStatistics stat;
1956 TF_EXPECT_OK(fs.Stat("gs://bucket/", &stat));
1957 EXPECT_EQ(0, stat.length);
1958 EXPECT_EQ(0, stat.mtime_nsec);
1959 EXPECT_TRUE(stat.is_directory);
1972 0 /* stat cache max age */, 0 /* stat cache max entries */,
1978 FileStatistics stat;
1979 EXPECT_EQ(error::Code::NOT_FOUND, fs.Stat("gs://bucket/", &stat).code());
2010 3600 /* stat cache max age */, 0 /* stat cache max entries */,
2015 // Repeated calls to fs.Stat on these paths should not lead to any additional
2018 FileStatistics stat;
2019 TF_EXPECT_OK(fs.Stat("gs://bucket/file.txt", &stat));
2020 EXPECT_EQ(1010, stat.length);
2021 EXPECT_NEAR(1461971724896, stat.mtime_nsec / 1000 / 1000, 1);
2022 EXPECT_FALSE(stat.is_directory);
2023 TF_EXPECT_OK(fs.Stat("gs://bucket/subfolder", &stat));
2024 EXPECT_EQ(0, stat.length);
2025 EXPECT_EQ(0, stat.mtime_nsec);
2026 EXPECT_TRUE(stat.is_directory);
2051 3600 /* stat cache max age */, 0 /* stat cache max entries */,
2055 // There should be a single HTTP request to GCS for fs.Stat in this loop.
2057 FileStatistics stat;
2058 TF_EXPECT_OK(fs.Stat("gs://bucket/file.txt", &stat));
2059 EXPECT_EQ(1010, stat.length);
2060 EXPECT_NEAR(1461971724896, stat.mtime_nsec / 1000 / 1000, 1);
2061 EXPECT_FALSE(stat.is_directory);
2063 // After flushing caches, there should be a second request to GCS for fs.Stat.
2066 FileStatistics stat;
2067 TF_EXPECT_OK(fs.Stat("gs://bucket/file.txt", &stat));
2068 EXPECT_EQ(1010, stat.length);
2069 EXPECT_NEAR(1461971724896, stat.mtime_nsec / 1000 / 1000, 1);
2070 EXPECT_FALSE(stat.is_directory);
2093 0 /* stat cache max age */, 0 /* stat cache max entries */,
2123 0 /* stat cache max age */, 0 /* stat cache max entries */,
2153 0 /* stat cache max age */, 0 /* stat cache max entries */,
2179 0 /* stat cache max age */, 0 /* stat cache max entries */,
2199 0 /* stat cache max age */, 0 /* stat cache max entries */,
2240 0 /* stat cache max age */, 0 /* stat cache max entries */,
2266 0 /* stat cache max age */, 0 /* stat cache max entries */,
2337 0 /* stat cache max age */, 0 /* stat cache max entries */,
2429 0 /* stat cache max age */, 0 /* stat cache max entries */,
2463 0 /* stat cache max age */, 0 /* stat cache max entries */,
2524 0 /* stat cache max age */, 0 /* stat cache max entries */,
2598 0 /* stat cache max age */, 0 /* stat cache max entries */,