Lines Matching refs:st_buf
47 struct stat st_buf; in check_mntent_file() local
57 if (stat(file, &st_buf) == 0) { in check_mntent_file()
58 if (S_ISBLK(st_buf.st_mode)) { in check_mntent_file()
60 file_rdev = st_buf.st_rdev; in check_mntent_file()
63 file_dev = st_buf.st_dev; in check_mntent_file()
64 file_ino = st_buf.st_ino; in check_mntent_file()
72 if (stat(mnt->mnt_fsname, &st_buf) == 0) { in check_mntent_file()
73 if (S_ISBLK(st_buf.st_mode)) { in check_mntent_file()
75 if (file_rdev && (file_rdev == st_buf.st_rdev)) in check_mntent_file()
79 if (file_dev && ((file_dev == st_buf.st_dev) && in check_mntent_file()
80 (file_ino == st_buf.st_ino))) in check_mntent_file()
95 if (file_rdev && stat("/", &st_buf) == 0) { in check_mntent_file()
96 if (st_buf.st_dev == file_rdev) { in check_mntent_file()
113 if (stat(mnt->mnt_dir, &st_buf) < 0) { in check_mntent_file()
124 if (file_rdev && (st_buf.st_dev != file_rdev)) { in check_mntent_file()
243 struct stat st_buf; in is_swap_device() local
248 if ((stat(file, &st_buf) == 0) && in is_swap_device()
249 S_ISBLK(st_buf.st_mode)) in is_swap_device()
250 file_dev = st_buf.st_rdev; in is_swap_device()
275 if (file_dev && (stat(buf, &st_buf) == 0) && in is_swap_device()
276 S_ISBLK(st_buf.st_mode) && in is_swap_device()
277 file_dev == st_buf.st_rdev) { in is_swap_device()
304 struct stat st_buf; in ext2fs_check_mount_point() local
329 if ((stat(device, &st_buf) != 0) || in ext2fs_check_mount_point()
330 !S_ISBLK(st_buf.st_mode)) in ext2fs_check_mount_point()