summaryrefslogtreecommitdiffstats
path: root/src/partsun.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/partsun.c
parent980ff85c3050ff15bf8e473ead40c24dba4b4353 (diff)
"testdisk -lu device" will list the partition with sector unit
Diffstat (limited to 'src/partsun.c')
-rw-r--r--src/partsun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/partsun.c b/src/partsun.c
index 323700a..006b246 100644
--- a/src/partsun.c
+++ b/src/partsun.c
@@ -171,7 +171,7 @@ list_part_t *read_part_sun(disk_t *disk_car, const int verbose, const int savehe
new_partition->part_size=(uint64_t)be32(sunlabel->partitions[i].num_sectors)*disk_car->sector_size;
new_partition->status=STATUS_PRIM;
disk_car->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);
@@ -306,7 +306,7 @@ static list_part_t *add_partition_sun_ncurses(disk_t *disk_car,list_part_t *list
new_partition->part_size=CHS2offset(disk_car,&end) - new_partition->part_offset + disk_car->sector_size;
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);
@@ -490,7 +490,7 @@ static int check_part_sun(disk_t *disk_car,const int verbose,partition_t *partit
if(ret!=0)
{
log_error("check_part_sun failed for partition type %02X\n", partition->part_type_sun);
- 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);