If the user choose to Undo everything in the label editor, only run the

fdisk editor if WITH_SLICES.  Before this on arch's that didn't support
slices such as alpha and sparc64 you would drop into the fdisk editor after
doing an Undo in the label editor.

Approved by:	re
This commit is contained in:
John Baldwin 2002-11-27 19:46:18 +00:00
parent 25fd437b15
commit 7382b0bfa5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107341
2 changed files with 4 additions and 0 deletions

View File

@ -1085,7 +1085,9 @@ diskLabel(Device *dev)
else if ((d = Open_Disk(devs[i]->name)) != NULL) {
Free_Disk(devs[i]->private);
devs[i]->private = d;
#ifdef WITH_SLICES
diskPartition(devs[i]);
#endif
}
}
record_label_chunks(devs, dev);

View File

@ -1085,7 +1085,9 @@ diskLabel(Device *dev)
else if ((d = Open_Disk(devs[i]->name)) != NULL) {
Free_Disk(devs[i]->private);
devs[i]->private = d;
#ifdef WITH_SLICES
diskPartition(devs[i]);
#endif
}
}
record_label_chunks(devs, dev);