Lines Matching defs:inst
427 struct fsck_instance *inst;
429 for (inst = instance_list; inst; inst = inst->next) {
430 if (inst->flags & FLAG_DONE)
432 if (inst->flags & FLAG_PROGRESS)
447 struct fsck_instance *inst;
452 for (inst = instance_list; inst; inst = inst->next) {
453 if (inst->flags & FLAG_DONE)
455 kill(inst->pid, SIGTERM);
468 struct fsck_instance *inst, *prev;
475 inst = instance_list;
478 while (inst->next && (random() & 1)) {
479 prev = inst;
480 inst = inst->next;
483 inst->exit_status = 0;
487 inst = prev = NULL; /* for gcc */
504 inst = instance_list;
505 while (inst) {
506 if (inst->pid == pid)
508 prev = inst;
509 inst = inst->next;
511 } while (!inst);
521 inst->prog, inst->device, sig);
526 inst->prog, inst->device, status);
529 inst->exit_status = status;
532 if (progress && (inst->flags & FLAG_PROGRESS) && !progress_active()) {
560 prev->next = inst->next;
562 instance_list = inst->next;
565 inst->device, inst->exit_status);
567 return inst;
578 struct fsck_instance *inst;
582 while ((inst = wait_one(wait_flags))) {
583 global_status |= inst->exit_status;
584 free_instance(inst);
605 struct fsck_instance *inst;
608 inst = xzalloc(sizeof(*inst));
621 inst->flags |= FLAG_PROGRESS;
648 inst->pid = pid;
649 inst->prog = argv[0];
650 inst->type = xstrdup(type);
651 inst->device = xstrdup(device);
652 inst->base_device = base_device(device);
653 inst->start_time = time(NULL);
657 inst->next = instance_list;
658 instance_list = inst;
707 struct fsck_instance *inst;
731 for (inst = instance_list; inst; inst = inst->next) {
732 if (!inst->base_device || !strcmp(base, inst->base_device)) {
1184 struct fsck_instance *inst;
1186 inst = wait_one(0);
1187 if (inst) {
1188 status |= inst->exit_status;
1189 free_instance(inst);