Home | History | Annotate | Download | only in libdiskconfig

Lines Matching defs:stat

28 #include <sys/stat.h>
240 struct stat stat;
245 if (fstat(fd, &stat)) {
246 ALOGE("Cannot stat, errno=%d.", errno);
250 if (S_ISBLK(stat.st_mode) && ((rv = ioctl(fd, BLKRRPART, NULL)) < 0)) {
277 struct stat stat;
287 if (fstat(fd, &stat)) {
288 ALOGE("Cannot stat file '%s', errno=%d.", dinfo->device, errno);
298 if (S_ISBLK(stat.st_mode)) {
320 } else if (S_ISREG(stat.st_mode)) {
329 dinfo->num_lba = (uint32_t)(stat.st_size / dinfo->sect_size);
330 disk_size = (uint64_t)stat.st_size;
372 if (S_ISBLK(stat.st_mode) && total_size > disk_size) {