Home | History | Annotate | Download | only in libdiskconfig

Lines Matching full:stat

27 #include <sys/stat.h>
239 struct stat stat;
244 if (fstat(fd, &stat)) {
245 LOGE("Cannot stat, errno=%d.", errno);
249 if (S_ISBLK(stat.st_mode) && ((rv = ioctl(fd, BLKRRPART, NULL)) < 0)) {
276 struct stat stat;
286 if (fstat(fd, &stat)) {
287 LOGE("Cannot stat file '%s', errno=%d.", dinfo->device, errno);
297 if (S_ISBLK(stat.st_mode)) {
319 } else if (S_ISREG(stat.st_mode)) {
328 dinfo->num_lba = (uint32_t)(stat.st_size / dinfo->sect_size);
329 disk_size = (uint64_t)stat.st_size;
370 if (S_ISBLK(stat.st_mode) && total_size > disk_size) {