aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-03-18 07:06:51 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-03-18 07:06:51 +0000
commit03388781318c8e566e2b1ecc750095312a7bed47 (patch)
tree1b6192aeb481e09bd0f25608347ed57010e5013d /sys
parent2a3e102a441daeacdf3cf609acf6e15ccff52343 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_disklabel.c9
-rw-r--r--sys/ufs/ufs/ufs_disksubr.c9
2 files changed, 16 insertions, 2 deletions
diff --git a/sys/kern/subr_disklabel.c b/sys/kern/subr_disklabel.c
index c1da7835c846f..8d4a6fdd9b837 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 c1da7835c846f..8d4a6fdd9b837 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;