Lines Matching refs:finfo
164 static int to_be_ignored(struct f_sys_info *finfo) in to_be_ignored() argument
168 if (!finfo->passno) return 1; //Ignore with pass num = 0 in to_be_ignored()
173 if (!strcmp(TT.arr_type[i], finfo->type)) ret = 0; in to_be_ignored()
176 if (hasmntopt((const struct mntent *)finfo, TT.arr_type[i])) return 1; in to_be_ignored()
178 if (!hasmntopt((const struct mntent *)finfo, TT.arr_type[i])) return 1; in to_be_ignored()
182 if (ignore_type(finfo->type)) return 1; in to_be_ignored()
188 static void do_fsck(struct f_sys_info *finfo) in do_fsck() argument
196 if (strcmp(finfo->type, "auto")) type = finfo->type; in do_fsck()
210 args[i] = finfo->device; in do_fsck()
215 finfo->mountpt ? finfo->mountpt : finfo->device); in do_fsck()
235 child->dev_name = xstrdup(finfo->device); in do_fsck()
303 struct f_sys_info *finfo = filesys_info; in scan_all() local
307 while (finfo) { in scan_all()
308 if (to_be_ignored(finfo)) finfo->flag |= FLAG_DONE; in scan_all()
309 finfo = finfo->next; in scan_all()
311 finfo = filesys_info; in scan_all()
314 while (finfo) { in scan_all()
315 … if (!strcmp(finfo->mountpt, "/")) { // man says: check / in parallel with others if -P is absent. in scan_all()
316 if ((toys.optflags & FLAG_R) || to_be_ignored(finfo)) { in scan_all()
317 finfo->flag |= FLAG_DONE; in scan_all()
320 do_fsck(finfo); in scan_all()
321 finfo->flag |= FLAG_DONE; in scan_all()
327 finfo = finfo->next; in scan_all()
331 for (finfo = filesys_info; finfo; finfo = finfo->next) { in scan_all()
332 if(!strcmp(finfo->mountpt, "/")) finfo->flag |= FLAG_DONE; in scan_all()
337 for (finfo = filesys_info; finfo; finfo = finfo->next) in scan_all()
338 if (!finfo->flag) break; in scan_all()
339 if (!finfo) break; in scan_all()
341 for (finfo = filesys_info; finfo; finfo = finfo->next) { in scan_all()
342 if (finfo->flag) continue; in scan_all()
343 if (finfo->passno == passno) { in scan_all()
344 do_fsck(finfo); in scan_all()
345 finfo->flag |= FLAG_DONE; in scan_all()
366 struct f_sys_info *finfo; in fsck_main() local
397 for (finfo = filesys_info; finfo; finfo = finfo->next) in fsck_main()
398 if (!strcmp(finfo->device, dev->data) in fsck_main()
399 || !strcmp(finfo->mountpt, dev->data)) break; in fsck_main()
400 if (!finfo) { //if not present, fill def values. in fsck_main()
406 finfo = create_db(&mt); in fsck_main()
408 do_fsck(finfo); in fsck_main()
409 finfo->flag |= FLAG_DONE; in fsck_main()
415 finfo = filesys_info; in fsck_main()
419 struct f_sys_info *finfo, *temp; in fsck_main() local
424 for (finfo = filesys_info; finfo;) { in fsck_main()
425 temp = finfo->next; in fsck_main()
426 free(finfo->device); in fsck_main()
427 free(finfo->mountpt); in fsck_main()
428 free(finfo->type); in fsck_main()
429 free(finfo->opts); in fsck_main()
430 free(finfo); in fsck_main()
431 finfo = temp; in fsck_main()