mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Fix a signal 11 error that occurs if you try to use the 'T' option on
an existing FreeBSD partition. Reported by: Brent Cook <busterb@mail.utexas.edu>
This commit is contained in:
parent
137eab1898
commit
7cdcc9fecd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89968
@ -1034,7 +1034,8 @@ diskLabel(Device *dev)
|
||||
break;
|
||||
|
||||
case 'T': /* Toggle newfs state */
|
||||
if (label_chunk_info[here].type == PART_FILESYSTEM) {
|
||||
if ((label_chunk_info[here].type == PART_FILESYSTEM) &&
|
||||
(label_chunk_info[here].c->private_data)) {
|
||||
PartInfo *pi = ((PartInfo *)label_chunk_info[here].c->private_data);
|
||||
if (!pi->newfs)
|
||||
label_chunk_info[here].c->flags |= CHUNK_NEWFS;
|
||||
|
@ -1034,7 +1034,8 @@ diskLabel(Device *dev)
|
||||
break;
|
||||
|
||||
case 'T': /* Toggle newfs state */
|
||||
if (label_chunk_info[here].type == PART_FILESYSTEM) {
|
||||
if ((label_chunk_info[here].type == PART_FILESYSTEM) &&
|
||||
(label_chunk_info[here].c->private_data)) {
|
||||
PartInfo *pi = ((PartInfo *)label_chunk_info[here].c->private_data);
|
||||
if (!pi->newfs)
|
||||
label_chunk_info[here].c->flags |= CHUNK_NEWFS;
|
||||
|
Loading…
Reference in New Issue
Block a user