MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / HFS_HFSP_boot_sector_command

Function HFS_HFSP_boot_sector_command

src/thfs.c:77–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77static int HFS_HFSP_boot_sector_command(char **current_cmd, const char *options)
78{
79 skip_comma_in_command(current_cmd);
80 if(check_command(current_cmd,"dump",4)==0)
81 {
82 return 'D';
83 }
84 else if(check_command(current_cmd,"originalhfsp",11)==0)
85 {
86 if(strchr(options,'O')!=NULL)
87 return 'O';
88 }
89 else if(check_command(current_cmd,"backuphfsp",9)==0)
90 {
91 if(strchr(options,'B')!=NULL)
92 return 'B';
93 }
94 return 0;
95}
96
97static const char *HFS_HFSP_boot_sector_rescan(disk_t *disk_car, const partition_t *partition, unsigned char *buffer_bs, unsigned char *buffer_backup_bs, const int verbose)
98{

Callers 1

HFS_HFSP_boot_sectorFunction · 0.85

Calls 2

skip_comma_in_commandFunction · 0.85
check_commandFunction · 0.85

Tested by

no test coverage detected