Lines Matching refs:st_buf
100 struct stat st_buf; in check_mntent_file() local
118 if (stat(file, &st_buf) == 0) { in check_mntent_file()
119 if (ext2fsP_is_disk_device(st_buf.st_mode)) { in check_mntent_file()
121 file_rdev = st_buf.st_rdev; in check_mntent_file()
124 file_dev = st_buf.st_dev; in check_mntent_file()
125 file_ino = st_buf.st_ino; in check_mntent_file()
133 if (stat(mnt->mnt_fsname, &st_buf) == 0) { in check_mntent_file()
134 if (ext2fsP_is_disk_device(st_buf.st_mode)) { in check_mntent_file()
136 if (file_rdev && (file_rdev == st_buf.st_rdev)) in check_mntent_file()
139 st_buf.st_rdev, file_dev, in check_mntent_file()
144 if (file_dev && ((file_dev == st_buf.st_dev) && in check_mntent_file()
145 (file_ino == st_buf.st_ino))) in check_mntent_file()
160 if (file_rdev && stat("/", &st_buf) == 0) { in check_mntent_file()
161 if (st_buf.st_dev == file_rdev) { in check_mntent_file()
178 if (stat(mnt->mnt_dir, &st_buf) < 0) { in check_mntent_file()
189 if (file_rdev && (st_buf.st_dev != file_rdev)) { in check_mntent_file()
308 struct stat st_buf; in is_swap_device() local
313 if ((stat(file, &st_buf) == 0) && in is_swap_device()
314 ext2fsP_is_disk_device(st_buf.st_mode)) in is_swap_device()
315 file_dev = st_buf.st_rdev; in is_swap_device()
340 if (file_dev && (stat(buf, &st_buf) == 0) && in is_swap_device()
341 ext2fsP_is_disk_device(st_buf.st_mode) && in is_swap_device()
342 file_dev == st_buf.st_rdev) { in is_swap_device()
406 struct stat st_buf; in ext2fs_check_mount_point() local
408 if (stat(device, &st_buf) == 0 && in ext2fs_check_mount_point()
409 ext2fsP_is_disk_device(st_buf.st_mode)) { in ext2fs_check_mount_point()