Do not fill in d_ncylinders, d_ntracks and d_nsectors in the disklabel

on ia64. Not only do we not have a disklabel by default, we also do
not have a notion of cylinders, tracks and sectors.
This commit is contained in:
Marcel Moolenaar 2003-11-02 08:07:25 +00:00
parent c0c0907820
commit 78cb7a7cd0

View File

@ -54,9 +54,11 @@ Fill_Disklabel(struct disklabel *dl, const struct disk *new,
dl->d_secsize = 512;
dl->d_secperunit = new->chunks->size;
#ifndef __ia64__
dl->d_ncylinders = new->bios_cyl;
dl->d_ntracks = new->bios_hd;
dl->d_nsectors = new->bios_sect;
#endif
dl->d_secpercyl = dl->d_ntracks * dl->d_nsectors;
dl->d_npartitions = MAXPARTITIONS;