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

Function is_part_linux

src/adv.c:102–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102int is_part_linux(const partition_t *partition)
103{
104 if(partition->arch==&arch_i386 && partition->part_type_i386==P_LINUX)
105 return 1;
106 if(partition->arch==&arch_sun && partition->part_type_sun==PSUN_LINUX)
107 return 1;
108 if(partition->arch==&arch_mac && partition->part_type_mac==PMAC_LINUX)
109 return 1;
110 if(partition->arch==&arch_gpt &&
111 (
112 guid_cmp(partition->part_type_gpt,GPT_ENT_TYPE_LINUX_DATA)==0 ||
113 guid_cmp(partition->part_type_gpt,GPT_ENT_TYPE_LINUX_HOME)==0 ||
114 guid_cmp(partition->part_type_gpt,GPT_ENT_TYPE_LINUX_SRV)==0
115 ))
116 return 1;
117 return 0;
118}
119
120static int is_exfat(const partition_t *partition)
121{

Callers 4

is_linuxFunction · 0.85
adv_get_boot_descriptionFunction · 0.85
dir_partition_initFunction · 0.85

Calls 1

guid_cmpFunction · 0.85

Tested by

no test coverage detected