Add check for rootfs > cyl 1024.

This commit is contained in:
Poul-Henning Kamp 1995-05-08 01:34:31 +00:00
parent 83b74c37e4
commit fccc689116
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8343
2 changed files with 12 additions and 4 deletions

View File

@ -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) {

View File

@ -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) {