Searched refs:g_sect_size (Results 1 – 1 of 1) sorted by relevance
86 static long g_cylinders, g_heads, g_sectors, g_sect_size; variable151 if (ioctl(dev_fd, BLKSSZGET, &arg) == 0) g_sect_size = arg; in read_sec_sz()158 g_sect_size = TT.sect_sz; in read_sec_sz()253 sec_buf = xzalloc(g_sect_size); in read_ebr()260 xlseek(dev_fd, (off_t)(offset * g_sect_size), SEEK_SET); in read_ebr()262 if (g_sect_size != readall(dev_fd, sec_buf, g_sect_size)) { in read_ebr()376 sector_fac = g_sect_size/SECTOR_SIZE; //512 is hardware sector size. in read_mbr()480 if (g_sect_size < ONE_K) { in list_partitions()481 blocks /= (ONE_K/g_sect_size); in list_partitions()482 odds = secs %(ONE_K/g_sect_size); in list_partitions()[all …]