1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-26 16:18:31 +00:00

With the recent libdisk changes, alpha doesn't need (as much) special magic.

This commit is contained in:
Poul-Henning Kamp 2002-10-30 20:55:25 +00:00
parent 89a0742e57
commit 6c47398ce1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106224
2 changed files with 0 additions and 70 deletions

View File

@ -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;

View File

@ -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;