disks.c (15419) | disks.c (15439) |
---|---|
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.43 1996/04/28 00:37:28 jkh Exp $ | 7 * $Id: disks.c,v 1.44 1996/04/28 03:26:49 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 --- 481 unchanged lines hidden (view full) --- 497 Chunk *c1; 498 Disk *d = (Disk *)devs[i]->private; 499 500 if (!devs[i]->enabled) 501 continue; 502 503 Set_Boot_Blocks(d, boot1, boot2); 504 msgNotify("Writing partition information to drive %s", d->name); | 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 --- 481 unchanged lines hidden (view full) --- 497 Chunk *c1; 498 Disk *d = (Disk *)devs[i]->private; 499 500 if (!devs[i]->enabled) 501 continue; 502 503 Set_Boot_Blocks(d, boot1, boot2); 504 msgNotify("Writing partition information to drive %s", d->name); |
505 if (Write_Disk(d)) { | 505 if (!Fake && Write_Disk(d)) { |
506 msgConfirm("ERROR: Unable to write data to disk %s!", d->name); 507 return DITEM_FAILURE; 508 } 509 /* Now scan for bad blocks, if necessary */ 510 for (c1 = d->chunks->part; c1; c1 = c1->next) { 511 if (c1->flags & CHUNK_BAD144) { 512 int ret; 513 --- 14 unchanged lines hidden --- | 506 msgConfirm("ERROR: Unable to write data to disk %s!", d->name); 507 return DITEM_FAILURE; 508 } 509 /* Now scan for bad blocks, if necessary */ 510 for (c1 = d->chunks->part; c1; c1 = c1->next) { 511 if (c1->flags & CHUNK_BAD144) { 512 int ret; 513 --- 14 unchanged lines hidden --- |