diff options
author | Dale S. Rahn <rahnds@cvs.openbsd.org> | 1998-09-14 03:54:36 +0000 |
---|---|---|
committer | Dale S. Rahn <rahnds@cvs.openbsd.org> | 1998-09-14 03:54:36 +0000 |
commit | 430fb2f326b8644b48e9dfac81edad297a72017d (patch) | |
tree | 3f5611ed885aa0e2a060ca4f738794819fbb6ef5 /sbin/fdisk/mbr.h | |
parent | 62d203b1aea6a5195937032bb27c074afa7e2f7c (diff) |
Since on the powerpc, the system does not supply the user with
bios valid cyl,head,sector information (the information comes from the
sd driver) I have made some changes to fdisk to do the following.
Allow the powerpc to specify values larger than the bios limits.
All platforms now have code that will translate the LBA values
in the mbr into CHS values according to the disk geometry.
This occurs if the start and ending CHS values have been stored as
0xffffff.
If writing to the disk and one of the values of a partition violates
the bios limits, it writes the requested values in the LBA fields ,
and stores 0xffffff for the starting and ending CHS values.
This should not change the default formatting of any existing system
other than the CHS and LBA values should always match given the detected
geometry of the disk.
Diffstat (limited to 'sbin/fdisk/mbr.h')
-rw-r--r-- | sbin/fdisk/mbr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk/mbr.h b/sbin/fdisk/mbr.h index 5a8efae6794..d91f14a5a79 100644 --- a/sbin/fdisk/mbr.h +++ b/sbin/fdisk/mbr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mbr.h,v 1.3 1997/10/21 22:49:34 provos Exp $ */ +/* $OpenBSD: mbr.h,v 1.4 1998/09/14 03:54:35 rahnds Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -58,7 +58,7 @@ typedef struct _mbr_t { /* Prototypes */ void MBR_print_disk __P((char *)); void MBR_print __P((mbr_t *)); -void MBR_parse __P((char *, off_t, off_t, mbr_t *)); +void MBR_parse __P((disk_t *, char *, off_t, off_t, mbr_t *)); void MBR_make __P((mbr_t *, char *)); int MBR_read __P((int, off_t, char *)); int MBR_write __P((int, off_t, char *)); |