Lines Matching refs:sb
27 template <typename StatVfsT> void Check(StatVfsT& sb) { in Check() argument
28 EXPECT_EQ(4096U, 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(0U, sb.f_fsid); in Check()
32 EXPECT_EQ(255U, sb.f_namemax); in Check()
37 EXPECT_TRUE((sb.f_flag & ST_VALID) == 0) << sb.f_flag; in Check()
41 struct statvfs sb; in TEST() local
42 ASSERT_EQ(0, statvfs("/proc", &sb)); in TEST()
43 Check(sb); in TEST()
47 struct statvfs64 sb; in TEST() local
48 ASSERT_EQ(0, statvfs64("/proc", &sb)); in TEST()
49 Check(sb); in TEST()
53 struct statvfs sb; in TEST() local
55 ASSERT_EQ(0, fstatvfs(fd, &sb)); in TEST()
57 Check(sb); in TEST()
61 struct statvfs64 sb; in TEST() local
63 ASSERT_EQ(0, fstatvfs64(fd, &sb)); in TEST()
65 Check(sb); in TEST()