diff options
-rw-r--r-- | sys/kern/subr_disklabel.c | 9 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_disksubr.c | 9 |
2 files changed, 16 insertions, 2 deletions
diff --git a/sys/kern/subr_disklabel.c b/sys/kern/subr_disklabel.c index c1da783..8d4a6fd 100644 --- a/sys/kern/subr_disklabel.c +++ b/sys/kern/subr_disklabel.c @@ -42,7 +42,7 @@ * SUCH DAMAGE. * * @(#)ufs_disksubr.c 8.5 (Berkeley) 1/21/94 - * $Id: ufs_disksubr.c,v 1.12 1995/03/18 06:32:48 davidg Exp $ + * $Id: ufs_disksubr.c,v 1.13 1995/03/18 06:38:04 davidg Exp $ */ #include <sys/param.h> @@ -68,6 +68,13 @@ * allocated. */ +/* + * For portability with historic industry practice, the + * cylinder number has to be maintained in the `b_resid' + * field. + */ +#define b_cylinder b_resid + void disksort(ap, bp) register struct buf *ap, *bp; diff --git a/sys/ufs/ufs/ufs_disksubr.c b/sys/ufs/ufs/ufs_disksubr.c index c1da783..8d4a6fd 100644 --- a/sys/ufs/ufs/ufs_disksubr.c +++ b/sys/ufs/ufs/ufs_disksubr.c @@ -42,7 +42,7 @@ * SUCH DAMAGE. * * @(#)ufs_disksubr.c 8.5 (Berkeley) 1/21/94 - * $Id: ufs_disksubr.c,v 1.12 1995/03/18 06:32:48 davidg Exp $ + * $Id: ufs_disksubr.c,v 1.13 1995/03/18 06:38:04 davidg Exp $ */ #include <sys/param.h> @@ -68,6 +68,13 @@ * allocated. */ +/* + * For portability with historic industry practice, the + * cylinder number has to be maintained in the `b_resid' + * field. + */ +#define b_cylinder b_resid + void disksort(ap, bp) register struct buf *ap, *bp; |