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

Function exFAT_boot_sector_command

src/texfat.c:76–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

exFAT_boot_sectorFunction · 0.85

Calls 2

skip_comma_in_commandFunction · 0.85
check_commandFunction · 0.85

Tested by

no test coverage detected