ChangeLog, fsck.c:

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.
bitmap-optimize
Theodore Ts'o 1999-10-26 17:17:00 +00:00
parent 9094f28440
commit 3bc036691a
2 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,9 @@
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 *

View File

@ -133,6 +133,7 @@ int like_mount = 0;
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;
@ -699,6 +700,9 @@ static int device_already_active(char *device)
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;
@ -914,6 +918,8 @@ static void PRS(int argc, char *argv[])
opt = 0;
}
}
if (getenv("FSCK_FORCE_ALL_PARALLEL"))
force_all_parallel++;
}
int main(int argc, char *argv[])