Searched refs:device_stat (Results 1 – 1 of 1) sorted by relevance
2722 struct stat device_stat; in GetDiskSize() local2723 if (fstat(fd, &device_stat) == -1) { in GetDiskSize()2731 if (S_ISBLK(device_stat.st_mode)) { in GetDiskSize()2750 } else if (S_ISREG(device_stat.st_mode)) { in GetDiskSize()2751 device_sectors_ = device_stat.st_size / kSectorSize; in GetDiskSize()