diff options
author | phk <phk@FreeBSD.org> | 2002-10-30 20:55:25 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-30 20:55:25 +0000 |
commit | c95a6c4e9d7104cc5995363dff7797d08c908ce6 (patch) | |
tree | d039b429df109cadd182b37a429ada6c713e76a5 /usr.sbin/sysinstall/label.c | |
parent | c925cf4a99a1bae069780ddb4f69b891d263a469 (diff) | |
download | FreeBSD-src-c95a6c4e9d7104cc5995363dff7797d08c908ce6.zip FreeBSD-src-c95a6c4e9d7104cc5995363dff7797d08c908ce6.tar.gz |
With the recent libdisk changes, alpha doesn't need (as much) special magic.
Diffstat (limited to 'usr.sbin/sysinstall/label.c')
-rw-r--r-- | usr.sbin/sysinstall/label.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/usr.sbin/sysinstall/label.c b/usr.sbin/sysinstall/label.c index 50c35e6..29dd4da 100644 --- a/usr.sbin/sysinstall/label.c +++ b/usr.sbin/sysinstall/label.c @@ -679,30 +679,6 @@ clear_wins(void) print_label_chunks(); } -#if defined(__alpha__) - -/* - * If there isn't a freebsd chunk already (i.e. there is no label), - * dedicate the disk. - */ -static void -maybe_dedicate(Disk* d) -{ - struct chunk *c; - - for (c = d->chunks->part; c; c = c->next) { - if (c->type == freebsd) - break; - } - - if (!c) { - msgDebug("dedicating disk"); - All_FreeBSD(d, 1); - } -} - -#endif - static int diskLabel(Device *dev) { @@ -712,9 +688,6 @@ diskLabel(Device *dev) PartInfo *p, *oldp; PartType type; Device **devs; -#if defined(__alpha__) - int i; -#endif WINDOW *w = savescr(); label_focus = 0; @@ -729,11 +702,6 @@ diskLabel(Device *dev) } labeling = TRUE; keypad(stdscr, TRUE); -#if defined(__alpha__) - for (i = 0; devs[i]; i++) { - maybe_dedicate((Disk*) devs[i]->private); - } -#endif record_label_chunks(devs, dev); clear(); @@ -1381,9 +1349,6 @@ diskLabelNonInteractive(Device *dev) d = dev->private; else d = devs[0]->private; -#if defined(__alpha__) - maybe_dedicate(d); -#endif record_label_chunks(devs, dev); for (i = 0; label_chunk_info[i].c; i++) { Chunk *c1 = label_chunk_info[i].c; |