summaryrefslogtreecommitdiffstats
path: root/fdisks/fdiskdoslabel.c
diff options
context:
space:
mode:
authorKarel Zak2013-06-12 17:32:03 +0200
committerKarel Zak2013-06-12 17:39:09 +0200
commit76b86412c607ba47f43ef7c0535436bca2a660d2 (patch)
treec61930713a5d278613a3ab64096c40b69b5b21ac /fdisks/fdiskdoslabel.c
parenttextual: improve clarity of some error messages (diff)
downloadkernel-qcow2-util-linux-76b86412c607ba47f43ef7c0535436bca2a660d2.tar.gz
kernel-qcow2-util-linux-76b86412c607ba47f43ef7c0535436bca2a660d2.tar.xz
kernel-qcow2-util-linux-76b86412c607ba47f43ef7c0535436bca2a660d2.zip
fdisk: don't use ptes[] in generic code
... the array is MBR specific. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdiskdoslabel.c')
-rw-r--r--fdisks/fdiskdoslabel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fdisks/fdiskdoslabel.c b/fdisks/fdiskdoslabel.c
index 415f222ca..5fd1da823 100644
--- a/fdisks/fdiskdoslabel.c
+++ b/fdisks/fdiskdoslabel.c
@@ -190,6 +190,7 @@ static int dos_delete_partition(struct fdisk_context *cxt, size_t partnum)
ptes[ext_index].ext_pointer = NULL;
extended_offset = 0;
}
+ ptes[partnum].changed = 1;
clear_partition(p);
} else if (!q->sys_ind && partnum > 4) {
/* the last one in the chain - just delete */
@@ -1100,6 +1101,7 @@ static int dos_set_parttype(
"partitions, please see the fdisk manual page for additional "
"information.\n\n"));
+ ptes[partnum].changed = 1;
p->sys_ind = t->type;
fdisk_label_set_changed(cxt->label, 1);
return 0;