[PTBL] pri partition checku

Egon Eckert egon na www.capitol.cz
Neděle Červenec 6 18:00:17 CEST 1997


Hynek Med <xmedh02 na manes.vse.cz> wrote:

: Partition check:
:  hda: hda1 hda2 hda3
:  hdc: [PTBL] [524/32/63] hdc1

Poprve odpovidam zjevne velkemu guruovi. Doufam, ze neprestrelim. :)
Ve zdrojacich jsem nasel PTBL jen v drivers/block/genhd.c :

/*
 * Examine the partition table for common translations. 
 * This is necessary for drives for situations where    
 * the translated geometry is unavailable from the BIOS.
 */
for (i = 0; i < 4 ; i++) {
  struct partition *q = &p[i];
  if (NR_SECTS(q) && (q->sector & 63) == 1 && (q->end_sector & 63) == 63) {
    unsigned int heads = q->end_head + 1;   
    if (heads == 32 || heads == 64 || heads == 128)
      (void) ide_xlate_1024(dev, heads, " [PTBL]");
      break;
    }
  }
}

Tak ze by 'translated geometry' byla 'unavailable from the BIOS' ?

Egon Eckert


Další informace o konferenci Linux