Lines Matching refs:Index
479 int Index[16]; /* list of valid partitions */ in verify_sgi() local
489 Index[sortcount++] = i; in verify_sgi()
503 qsort(Index, sortcount, sizeof(Index[0]), (void*)compare_start); in verify_sgi()
504 if (sgi_get_sysid(Index[0]) == SGI_ENTIRE_DISK) { in verify_sgi()
505 if ((Index[0] != 10) && verbose) in verify_sgi()
507 if ((sgi_get_start_sector(Index[0]) != 0) && verbose) { in verify_sgi()
511 sgi_get_start_sector(Index[0])); in verify_sgi()
514 if ((sgi_get_num_sectors(Index[0]) != lastblock) && verbose) in verify_sgi()
517 sgi_get_num_sectors(Index[0]), lastblock); in verify_sgi()
518 lastblock = sgi_get_num_sectors(Index[0]); in verify_sgi()
525 sgi_get_sysid(Index[0]), Index[0]+1); in verify_sgi()
530 if ((sgi_get_start_sector(Index[i]) % cylsize) != 0) { in verify_sgi()
534 Index[i]+1); in verify_sgi()
536 if (sgi_get_num_sectors(Index[i]) % cylsize != 0) { in verify_sgi()
540 Index[i]+1); in verify_sgi()
543 if (sgi_get_sysid(Index[i]) == SGI_ENTIRE_DISK) continue; in verify_sgi()
544 if (start > sgi_get_start_sector(Index[i])) { in verify_sgi()
547 Index[i-1]+1, Index[i]+1, in verify_sgi()
548 start - sgi_get_start_sector(Index[i])); in verify_sgi()
552 if (start < sgi_get_start_sector(Index[i])) { in verify_sgi()
555 sgi_get_start_sector(Index[i]) - start, in verify_sgi()
556 start, sgi_get_start_sector(Index[i])-1); in verify_sgi()
557 gap += sgi_get_start_sector(Index[i]) - start; in verify_sgi()
558 add2freelist(start, sgi_get_start_sector(Index[i])); in verify_sgi()
560 start = sgi_get_start_sector(Index[i]) in verify_sgi()
561 + sgi_get_num_sectors(Index[i]); in verify_sgi()
564 printf("%2u:%12u\t%12u\t%12u\n", Index[i], in verify_sgi()
565 sgi_get_start_sector(Index[i]), in verify_sgi()
566 sgi_get_num_sectors(Index[i]), in verify_sgi()
567 sgi_get_sysid(Index[i])); in verify_sgi()