From fccc689116d7bd842239d44676cbb77ff29a6570 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 8 May 1995 01:34:31 +0000 Subject: [PATCH] Add check for rootfs > cyl 1024. --- lib/libdisk/rules.c | 8 ++++++-- release/libdisk/rules.c | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/libdisk/rules.c b/lib/libdisk/rules.c index 6bd46a4389f..2c21eb47146 100644 --- a/lib/libdisk/rules.c +++ b/lib/libdisk/rules.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: rules.c,v 1.7 1995/05/05 07:07:45 phk Exp $ + * $Id: rules.c,v 1.8 1995/05/06 03:28:31 phk Exp $ * */ @@ -195,8 +195,12 @@ Rule_004(struct disk *d, struct chunk *c, char *msg) continue; if (c1->subtype == FS_SWAP) j++; - if (c1->flags & CHUNK_IS_ROOT) + if (c1->flags & CHUNK_IS_ROOT) { k++; + if (c1->flags & CHUNK_PAST_1024) + sprintf(msg+strlen(msg), + "Root filesystem extends past cylinder 1024, and cannot be booted from\n"); + } i++; } if (i > 7) { diff --git a/release/libdisk/rules.c b/release/libdisk/rules.c index 6bd46a4389f..2c21eb47146 100644 --- a/release/libdisk/rules.c +++ b/release/libdisk/rules.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: rules.c,v 1.7 1995/05/05 07:07:45 phk Exp $ + * $Id: rules.c,v 1.8 1995/05/06 03:28:31 phk Exp $ * */ @@ -195,8 +195,12 @@ Rule_004(struct disk *d, struct chunk *c, char *msg) continue; if (c1->subtype == FS_SWAP) j++; - if (c1->flags & CHUNK_IS_ROOT) + if (c1->flags & CHUNK_IS_ROOT) { k++; + if (c1->flags & CHUNK_PAST_1024) + sprintf(msg+strlen(msg), + "Root filesystem extends past cylinder 1024, and cannot be booted from\n"); + } i++; } if (i > 7) {