Bohdan Tashchuk wrote: > --- On Wed, 1/6/10, Alexander Hall <alexan...@beard.se> wrote: >> You should be able to get the same result using proper values for >> fs_passno in /etc/fstab. > > One would hope so, but I don't think that's the case. > > First, the man page says > > the root filesystem should be specified with a fs_passno of 1, and > other filesystems should have a fs_passno of 2. Filesystems within a > drive will be checked sequentially, but filesystems on different > drives will be checked at the same time to utilize parallelism > available in the hardware. > > Second, in fsck/preen.c I see a construct like this > > for (passno = 1; passno <= 2; passno++) { ... ... if (passno == 2 && > fs->fs_passno > 1) {
Oh yes it seems you're right, and it goes a long way back too. I wonder if it ever worked the way I've always interpreted the man page... > > For some reason, many years ago, fsck was "optimized" to run in > parallel for "efficiency". It's unfortunate that the fstab file can't > be used to provide better control over the parallelism.