Deleted Added
full compact
disks.c (17398) disks.c (17404)
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last program in the `sysinstall' line - the next
5 * generation being essentially a complete rewrite.
6 *
7 * $Id: disks.c,v 1.61 1996/08/01 11:39:47 jkh Exp $
7 * $Id: disks.c,v 1.62 1996/08/03 05:29:24 jkh Exp $
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 56 unchanged lines hidden (view full) ---

72
73 for (i = sz = 0; chunk_info[i]; i++)
74 sz += chunk_info[i]->size;
75 if (d->bios_hd <= 1 && d->bios_sect <= 1) {
76 All_FreeBSD(d, TRUE);
77 d->bios_hd = d->bios_sect = d->bios_cyl = 1;
78 }
79 else if (d->bios_cyl > 65536 || d->bios_hd > 256 || d->bios_sect >= 64) {
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 56 unchanged lines hidden (view full) ---

72
73 for (i = sz = 0; chunk_info[i]; i++)
74 sz += chunk_info[i]->size;
75 if (d->bios_hd <= 1 && d->bios_sect <= 1) {
76 All_FreeBSD(d, TRUE);
77 d->bios_hd = d->bios_sect = d->bios_cyl = 1;
78 }
79 else if (d->bios_cyl > 65536 || d->bios_hd > 256 || d->bios_sect >= 64) {
80 dialog_clear();
80 dialog_clear_norefresh();
81 msgConfirm("WARNING: A geometry of %d/%d/%d for %s is incorrect. Using\n"
82 "a default geometry of 64 heads and 32 sectors. If this geometry\n"
83 "is incorrect or you are unsure as to whether or not it's correct,\n"
84 "please consult the Hardware Guide in the Documentation submenu\n"
85 "or use the (G)eometry command to change it now.", d->bios_cyl, d->bios_hd, d->bios_sect, d->name);
86 d->bios_hd = 64;
87 d->bios_sect = 32;
88 d->bios_cyl = sz / ONE_MEG;

--- 297 unchanged lines hidden (view full) ---

386 WINDOW *w;
387
388 w = savescr();
389 dialog_clear();
390 end_dialog();
391 DialogActive = FALSE;
392 slice_wizard(d);
393 variable_set2(DISK_PARTITIONED, "yes");
81 msgConfirm("WARNING: A geometry of %d/%d/%d for %s is incorrect. Using\n"
82 "a default geometry of 64 heads and 32 sectors. If this geometry\n"
83 "is incorrect or you are unsure as to whether or not it's correct,\n"
84 "please consult the Hardware Guide in the Documentation submenu\n"
85 "or use the (G)eometry command to change it now.", d->bios_cyl, d->bios_hd, d->bios_sect, d->name);
86 d->bios_hd = 64;
87 d->bios_sect = 32;
88 d->bios_cyl = sz / ONE_MEG;

--- 297 unchanged lines hidden (view full) ---

386 WINDOW *w;
387
388 w = savescr();
389 dialog_clear();
390 end_dialog();
391 DialogActive = FALSE;
392 slice_wizard(d);
393 variable_set2(DISK_PARTITIONED, "yes");
394 dialog_clear();
394 dialog_clear_norefresh();
395 DialogActive = TRUE;
396 record_chunks(d);
397 restorescr(w);
398 }
399 else
400 msg = "Wise choice!";
401 break;
402

--- 14 unchanged lines hidden (view full) ---

417 msg = "Type F1 or ? for help";
418 break;
419 }
420 }
421 p = CheckRules(d);
422 if (p) {
423 char buf[FILENAME_MAX];
424
395 DialogActive = TRUE;
396 record_chunks(d);
397 restorescr(w);
398 }
399 else
400 msg = "Wise choice!";
401 break;
402

--- 14 unchanged lines hidden (view full) ---

417 msg = "Type F1 or ? for help";
418 break;
419 }
420 }
421 p = CheckRules(d);
422 if (p) {
423 char buf[FILENAME_MAX];
424
425 dialog_clear();
425 dialog_clear_norefresh();
426 use_helpline("Press F1 to read more about disk partitioning.");
427 use_helpfile(systemHelpFile("partition", buf));
428 dialog_mesgbox("Disk partitioning warning:", p, -1, -1);
429 free(p);
430 }
431 restorescr(w);
432}
433

--- 128 unchanged lines hidden ---
426 use_helpline("Press F1 to read more about disk partitioning.");
427 use_helpfile(systemHelpFile("partition", buf));
428 dialog_mesgbox("Disk partitioning warning:", p, -1, -1);
429 free(p);
430 }
431 restorescr(w);
432}
433

--- 128 unchanged lines hidden ---