Deleted Added
full compact
disks.c (8589) disks.c (8641)
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.21 1995/05/17 16:16:07 jkh Exp $
7 * $Id: disks.c,v 1.22 1995/05/18 09:01:50 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

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

311 str = cp;
312 }
313 return devs ? 1 : 0;
314}
315
316int
317diskPartitionEditor(char *str)
318{
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

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

311 str = cp;
312 }
313 return devs ? 1 : 0;
314}
315
316int
317diskPartitionEditor(char *str)
318{
319 int scroll, choice, curr, max;
320 DMenu *menu;
321
322 menu = deviceCreateMenu(&MenuDiskDevices, DEVICE_TYPE_DISK, partitionHook);
323 if (!menu) {
324 msgConfirm("No devices suitable for installation found!\n\nPlease verify that your disk controller (and attached drives) were detected properly. This can be done by selecting the ``Bootmsg'' option on the main menu and reviewing the boot messages carefully.");
325 }
326 else {
319 DMenu *menu;
320
321 menu = deviceCreateMenu(&MenuDiskDevices, DEVICE_TYPE_DISK, partitionHook);
322 if (!menu) {
323 msgConfirm("No devices suitable for installation found!\n\nPlease verify that your disk controller (and attached drives) were detected properly. This can be done by selecting the ``Bootmsg'' option on the main menu and reviewing the boot messages carefully.");
324 }
325 else {
327 choice = scroll = curr = max = 0;
328 dmenuOpen(menu, &choice, &scroll, &curr, &max);
326 dmenuOpenSimple(menu);
329 free(menu);
330 }
331 return 0;
332}
327 free(menu);
328 }
329 return 0;
330}