Add the possibility to list NTFS partition in the Advanced menu

This commit is contained in:
Christophe Grenier 2010-11-20 16:25:07 +01:00
parent 4829758b9f
commit 3072cedc43

View file

@ -204,9 +204,9 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
{'t',"Type","Change type, this setting will not be saved on disk"}, {'t',"Type","Change type, this setting will not be saved on disk"},
{'b',"Boot","Boot sector recovery"}, {'b',"Boot","Boot sector recovery"},
{'s',"Superblock",NULL}, {'s',"Superblock",NULL},
{'c',"Image Creation", "Create an image"},
{'u',"Undelete", "File undelete"},
{'l',"List", "List and copy files"}, {'l',"List", "List and copy files"},
{'u',"Undelete", "File undelete"},
{'c',"Image Creation", "Create an image"},
// {'a',"Add", "Add temporary partition (Expert only)"}, // {'a',"Add", "Add temporary partition (Expert only)"},
{'q',"Quit","Return to main menu"}, {'q',"Quit","Return to main menu"},
{0,NULL,NULL} {0,NULL,NULL}
@ -266,8 +266,10 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
const partition_t *partition=current_element->part; const partition_t *partition=current_element->part;
if(menu==0) if(menu==0)
menu=1; menu=1;
if(is_part_fat(partition) || is_part_ntfs(partition)) if(is_part_fat(partition))
options="tubcq"; options="tubcq";
if(is_part_ntfs(partition))
options="tlubcq";
else if(is_part_linux(partition)) else if(is_part_linux(partition))
{ {
if(partition->upart_type==UP_EXT2) if(partition->upart_type==UP_EXT2)
@ -281,8 +283,10 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
options="tscq"; options="tscq";
menuAdv[2].desc="Locate HFS/HFS+ backup volume header"; menuAdv[2].desc="Locate HFS/HFS+ backup volume header";
} }
else if(is_fat(partition) || is_ntfs(partition)) else if(is_fat(partition))
options="tubcq"; options="tubcq";
else if(is_ntfs(partition))
options="tlubcq";
else if(is_linux(partition)) else if(is_linux(partition))
{ {
if(partition->upart_type==UP_EXT2) if(partition->upart_type==UP_EXT2)