fsck.c (PRS, device_already_active): Add debugging hook; if the
environment variable FSCK_FORCE_ALL_PARALLEL is set, then force all
fsck runs to happen in parallel.
1999-10-26 <tytso@valinux.com>
+ * fsck.c (PRS, device_already_active): Add debugging hook; if the
+ environment variable FSCK_FORCE_ALL_PARALLEL is set, then
+ force all fsck runs to happen in parallel.
+
* get_device_by_label.c (has_right_label): Fixed bug where code
used a strncmp to compare a binary UUID value which may
contain a NULL. Fixed GCC warnings; added const to char *
int notitle = 0;
int parallel_root = 0;
int progress = 0;
+int force_all_parallel = 0;
char *progname;
char *fstype = NULL;
struct fs_info *filesys_info;
struct fsck_instance *inst;
const char *base = base_device(device);
+ if (force_all_parallel)
+ return 0;
+
for (inst = instance_list; inst; inst = inst->next) {
if (!strcmp(base, base_device(inst->device)))
return 1;
opt = 0;
}
}
+ if (getenv("FSCK_FORCE_ALL_PARALLEL"))
+ force_all_parallel++;
}
int main(int argc, char *argv[])