summaryrefslogtreecommitdiffstats
path: root/src/partmac.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2007-12-06 00:29:52 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2007-12-06 00:29:52 +0100
commitf51aa191c2be32b989b4ddb5fee31b8bfd75edf5 (patch)
treebfaf4e746da8d6bd071af09d4d0e5a0ad6a56884 /src/partmac.c
parent980ff85c3050ff15bf8e473ead40c24dba4b4353 (diff)
"testdisk -lu device" will list the partition with sector unit
Diffstat (limited to 'src/partmac.c')
-rw-r--r--src/partmac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/partmac.c b/src/partmac.c
index 43d29ce..8099d6b 100644
--- a/src/partmac.c
+++ b/src/partmac.c
@@ -190,7 +190,7 @@ list_part_t *read_part_mac(disk_t *disk_car, const int verbose, const int savehe
new_partition->part_size=(uint64_t)be32(dpme->dpme_pblocks)*PBLOCK_SIZE;
new_partition->status=STATUS_PRIM;
new_partition->arch->check_part(disk_car,verbose,new_partition,saveheader);
- aff_part_buffer(AFF_PART_ORDER,disk_car,new_partition);
+ aff_part_buffer(AFF_PART_ORDER|AFF_PART_STATUS,disk_car,new_partition);
new_list_part=insert_new_partition(new_list_part, new_partition, 0, &insert_error);
if(insert_error>0)
free(new_partition);
@@ -332,7 +332,7 @@ static list_part_t *add_partition_mac_ncurses(disk_t *disk_car,list_part_t *list
wprintw(stdscr,"%s",disk_car->description(disk_car));
wmove(stdscr,10, 0);
wclrtoeol(stdscr);
- aff_part(stdscr,AFF_PART_SHORT,disk_car,new_partition);
+ aff_part(stdscr, AFF_PART_BASE, disk_car, new_partition);
wmove(stdscr,INTER_GEOM_Y, INTER_GEOM_X);
wclrtoeol(stdscr);
wrefresh(stdscr);
@@ -541,7 +541,7 @@ static int check_part_mac(disk_t *disk_car,const int verbose,partition_t *partit
if(ret!=0)
{
log_error("check_part_mac failed for partition type %02X\n", partition->part_type_mac);
- aff_part_buffer(AFF_PART_ORDER,disk_car,partition);
+ aff_part_buffer(AFF_PART_ORDER|AFF_PART_STATUS,disk_car,partition);
if(saveheader>0)
{
save_header(disk_car,partition,verbose);