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:
parent
25fd437b15
commit
7382b0bfa5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107341
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user