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

Function is_linux

src/adv.c:135–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135static int is_linux(const partition_t *partition)
136{
137 if(is_part_linux(partition))
138 return 1;
139 switch(partition->upart_type)
140 {
141 case UP_CRAMFS:
142 case UP_EXT2:
143 case UP_EXT3:
144 case UP_EXT4:
145 case UP_JFS:
146 case UP_RFS:
147 case UP_RFS2:
148 case UP_RFS3:
149 case UP_RFS4:
150 case UP_XFS:
151 case UP_XFS2:
152 case UP_XFS3:
153 case UP_XFS4:
154 case UP_XFS5:
155 return 1;
156 default:
157 break;
158 }
159 return 0;
160}
161
162#ifdef HAVE_NCURSES
163static void interface_adv_ncurses(disk_t *disk, const int rewrite, list_part_t *list_part, const list_part_t *current_element, const int offset)

Callers 3

adv_get_boot_descriptionFunction · 0.85

Calls 1

is_part_linuxFunction · 0.85

Tested by

no test coverage detected