diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-07-26 17:40:39 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-07-26 17:40:39 +0000 |
commit | 007a64b8bc9d925ba03097d75c48fda8198d36c6 (patch) | |
tree | 53957ec27a20b916976f49ff239a0ed6fc2c1bed | |
parent | 8c916c5a39aaeedde07a07fe99811bd8844cb471 (diff) |
Don't skip 'b' when suggesting the next partition to add. I thought it would be confusing to suggest 'b' but what happens is that people build a disk without swap.
-rw-r--r-- | sbin/disklabel/editor.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index 22569ca2990..4ab0770d981 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.40 1998/07/26 17:36:09 millert Exp $ */ +/* $OpenBSD: editor.c,v 1.41 1998/07/26 17:40:38 millert Exp $ */ /* * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> @@ -28,7 +28,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: editor.c,v 1.40 1998/07/26 17:36:09 millert Exp $"; +static char rcsid[] = "$OpenBSD: editor.c,v 1.41 1998/07/26 17:40:38 millert Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -378,10 +378,9 @@ editor_add(lp, freep, p) return; } } else { - /* Find first unused partition that is not 'b' or 'c' */ + /* Find first unused partition that is not 'c' */ for (partno = 0; partno < MAXPARTITIONS; partno++, p++) { - if (lp->d_partitions[partno].p_size == 0 && - partno != 1 && partno != 2) + if (lp->d_partitions[partno].p_size == 0 && partno != 2) break; } if (partno < MAXPARTITIONS) { |