Lines Matching full:stat
27 #include <sys/stat.h>
241 struct stat stat;
246 if (fstat(fd, &stat)) {
247 LOGE("Cannot stat, errno=%d.", errno);
251 if (S_ISBLK(stat.st_mode) && ((rv = ioctl(fd, BLKRRPART, NULL)) < 0)) {
278 struct stat stat;
288 if (fstat(fd, &stat)) {
289 LOGE("Cannot stat file '%s', errno=%d.", dinfo->device, errno);
299 if (S_ISBLK(stat.st_mode)) {
321 } else if (S_ISREG(stat.st_mode)) {
330 dinfo->num_lba = (uint32_t)(stat.st_size / dinfo->sect_size);
331 disk_size = (uint64_t)stat.st_size;
373 if (S_ISBLK(stat.st_mode) && total_size > disk_size) {