summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade/label.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-18 17:38:02 +0000
committerjkh <jkh@FreeBSD.org>1995-05-18 17:38:02 +0000
commit872bdece6f977a9ec203e2fbde750d8aa01fc38a (patch)
treef07fc838b31651a74295446512b66afccd8d7b35 /usr.sbin/sade/label.c
parent34f213a3cb0c510dc5f8aa67a32b6258e16ca7aa (diff)
downloadFreeBSD-src-872bdece6f977a9ec203e2fbde750d8aa01fc38a.zip
FreeBSD-src-872bdece6f977a9ec203e2fbde750d8aa01fc38a.tar.gz
Use CHUNK_BSD_COMPAT as God and Poul intended it be used.
Diffstat (limited to 'usr.sbin/sade/label.c')
-rw-r--r--usr.sbin/sade/label.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/usr.sbin/sade/label.c b/usr.sbin/sade/label.c
index d6bb124..a2df5ae 100644
--- a/usr.sbin/sade/label.c
+++ b/usr.sbin/sade/label.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: label.c,v 1.5 1995/05/17 16:16:09 jkh Exp $
+ * $Id: label.c,v 1.6 1995/05/18 09:01:57 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -491,6 +491,10 @@ diskLabelEditor(char *str)
else
p = NULL;
+ if ((flags & CHUNK_IS_ROOT) && !(label_chunk_info[here].c->flags & CHUNK_BSD_COMPAT)) {
+ msgConfirm("This region cannot be used for your root partition as\nthe FreeBSD boot code cannot deal with a root partition created in\nsuch a location. Please choose another location for your root\npartition and try again!");
+ break;
+ }
tmp = Create_Chunk_DWIM(label_chunk_info[here].d,
label_chunk_info[here].c,
size, part,
@@ -500,17 +504,10 @@ diskLabelEditor(char *str)
msgConfirm("Unable to create the partition. Too big?");
break;
}
- else if (flags & CHUNK_IS_ROOT) {
- if (tmp->flags & CHUNK_PAST_1024) {
+ else if ((flags & CHUNK_IS_ROOT) && (tmp->flags & CHUNK_PAST_1024)) {
msgConfirm("This region cannot be used for your root partition as it starts\nor extends past the 1024'th cylinder mark and is thus a\npoor location to boot from. Please choose another\nlocation for your root partition and try again!");
Delete_Chunk(label_chunk_info[here].d, tmp);
break;
- }
- else if (!(tmp->flags & CHUNK_BSD_COMPAT)) {
- msgConfirm("This region cannot be used for your root partition as\nthe FreeBSD boot code cannot deal with a root partition created in\nsuch a location. Please choose another location for your root\npartition and try again!");
- Delete_Chunk(label_chunk_info[here].d, tmp);
- break;
- }
}
tmp->private = p;
tmp->private_free = safe_free;
OpenPOWER on IntegriCloud