From: Ben Gras Date: Mon, 8 Aug 2005 14:55:48 +0000 (+0000) Subject: minor bugfix (the whole active thing) X-Git-Tag: v3.1.0~399 X-Git-Url: http://zhaoyanbai.com/repos/jquery-3.1.1.min.js?a=commitdiff_plain;h=68b2f2314ed54fc00ef3930d2baa23e75fa45f59;p=minix.git minor bugfix (the whole active thing) --- diff --git a/commands/ibm/autopart.c b/commands/ibm/autopart.c index e6c11a91a..f60fc7eef 100755 --- a/commands/ibm/autopart.c +++ b/commands/ibm/autopart.c @@ -2336,10 +2336,9 @@ may_kill_region(void) i = regions[r].tableno; - if(is_sure(0, "Are you sure you want to delete this region,\n" - "losing all data it contains?\n" - "You have selected a region used\n" - "by %s (%s).\n" + if(is_sure(0, "\nAre you sure you want to delete this region,\n" + "losing all data it contains? You have selected a region used\n" + "by %s (%s).\n\n" "I won't actually update your disk right away, but still. Sure?", typ2txt(table[i].sysind), prettysizeprint(table[i].size / 2))) { table[i].sysind = NO_PART; @@ -2536,8 +2535,6 @@ scribble_region(region_t *reg, struct part_entry **pe) newpart->size = reg->free_sec_last - reg->free_sec_start + 1; changed = 1; } else newpart = ®->used_part; - check_ind(newpart); - newpart->sysind = MINIX_PART; *pe = newpart; changed = 1; dirty = 1; @@ -2602,7 +2599,6 @@ do_autopart(int resultfd) if(!is_sure(SURE_SERIOUS, "Are you sure you want to continue?")) return 1; - m_write('w', NULL); /* Retrieve partition number in sorted order that we * have scribbled in. */ @@ -2613,6 +2609,8 @@ do_autopart(int resultfd) fprintf(stderr, "Internal error (1).\n"); return 1; } + check_ind(&table[sort_order[i]]); + table[sort_order[i]].sysind = MINIX_PART; found = i; } } @@ -2620,6 +2618,11 @@ do_autopart(int resultfd) fprintf(stderr, "Internal error (2).\n"); return 1; } + m_write('w', NULL); + if(dirty) { + fprintf(stderr, "Internal error (3).\n"); + return 1; + } name=strrchr(curdev->name, '/'); if(!name) name = curdev->name; else name++;