diff options
author | marcel <marcel@FreeBSD.org> | 2003-11-02 08:07:25 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-11-02 08:07:25 +0000 |
commit | d4476d880f1e17d95e10b1b3e15e4b07f7080184 (patch) | |
tree | 76f8f570e96cddd672c733b1774622e6e92060b2 /lib/libdisk | |
parent | 470ee47978c10c36963087cd41a296e7e4e48704 (diff) | |
download | FreeBSD-src-d4476d880f1e17d95e10b1b3e15e4b07f7080184.zip FreeBSD-src-d4476d880f1e17d95e10b1b3e15e4b07f7080184.tar.gz |
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.
Diffstat (limited to 'lib/libdisk')
-rw-r--r-- | lib/libdisk/write_disk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libdisk/write_disk.c b/lib/libdisk/write_disk.c index 8c2aa54..024981b 100644 --- a/lib/libdisk/write_disk.c +++ b/lib/libdisk/write_disk.c @@ -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; |