Lines Matching refs:sb
27 template <typename StatVfsT> void Check(StatVfsT& sb) { in Check() argument
28 EXPECT_EQ(getpagesize(), static_cast<int>(sb.f_bsize)); in Check()
29 EXPECT_EQ(0U, sb.f_bfree); in Check()
30 EXPECT_EQ(0U, sb.f_ffree); in Check()
31 EXPECT_EQ(255U, sb.f_namemax); in Check()
34 if (sb.f_fsid != 0U) { in Check()
38 EXPECT_EQ(proc_sb.st_dev, sb.f_fsid); in Check()
41 EXPECT_EQ(0U, sb.f_fsid); in Check()
47 EXPECT_TRUE((sb.f_flag & ST_VALID) == 0) << sb.f_flag; in Check()
51 struct statvfs sb; in TEST() local
52 ASSERT_EQ(0, statvfs("/proc", &sb)); in TEST()
53 Check(sb); in TEST()
57 struct statvfs64 sb; in TEST() local
58 ASSERT_EQ(0, statvfs64("/proc", &sb)); in TEST()
59 Check(sb); in TEST()
63 struct statvfs sb; in TEST() local
65 ASSERT_EQ(0, fstatvfs(fd, &sb)); in TEST()
67 Check(sb); in TEST()
71 struct statvfs64 sb; in TEST() local
73 ASSERT_EQ(0, fstatvfs64(fd, &sb)); in TEST()
75 Check(sb); in TEST()