summaryrefslogtreecommitdiffstats
path: root/src/partxbox.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/partxbox.c
parent980ff85c3050ff15bf8e473ead40c24dba4b4353 (diff)
"testdisk -lu device" will list the partition with sector unit
Diffstat (limited to 'src/partxbox.c')
-rw-r--r--src/partxbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/partxbox.c b/src/partxbox.c
index cdde63d..3821603 100644
--- a/src/partxbox.c
+++ b/src/partxbox.c
@@ -124,7 +124,7 @@ list_part_t *read_part_xbox(disk_t *disk_car, const int verbose, const int saveh
partition->part_size=offsets[i+1]-offsets[i];
partition->status=STATUS_PRIM;
disk_car->arch->check_part(disk_car,verbose,partition,saveheader);
- aff_part_buffer(AFF_PART_ORDER,disk_car,partition);
+ aff_part_buffer(AFF_PART_ORDER|AFF_PART_STATUS,disk_car,partition);
new_list_part=insert_new_partition(new_list_part, partition, 0, &insert_error);
if(insert_error>0)
free(partition);
@@ -234,7 +234,7 @@ static list_part_t *add_partition_xbox_ncurses(disk_t *disk_car,list_part_t *lis
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);
@@ -403,7 +403,7 @@ static int check_part_xbox(disk_t *disk_car,const int verbose,partition_t *parti
if(ret!=0)
{
log_error("check_part_xbox failed for partition type %02X\n", partition->part_type_xbox);
- 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);