Skip to contentSkip to conversation

waiting 10s before mounting root filesystem?

DISCUSSION Bodo Eggert 1 participant 1 message Dec 31, 2004 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 5 lines · Jesper Juhl

I agree with you that reducing screen clutter is a good thing. How about something like this that waits for 10+ seconds so even slow devices have a chance to get up but also does some primitive ratelimiting on the messages by only printing one every 3 seconds (but still attempting to mount every 1 sec) ?

a) Print every 4 seconds, this will replace one division by a bit-test:
... int retries = 32 ...
... if (! (retries & 0x3)) /* is a multiple of 4 */ ...

I choose 32 because I saw SCSI controlers taking an enormous amount of time until detecting all devices. Maybe it's still too low for bus 7 id 15, but I'd wait for someone to complain.

b) I saw no benefit from using 'short' instead of 'int' when I did a small test (with uudecoding on i386) some time ago, but I could make the resulting code be smaller and use less memory accesses by introducing some temporary ints to hold the chars I was operating upon. Are there contrary experiences that lead to using 'short' here?

c) This patch will sleep for a second after the last try before it continues to panic. It's OK for me, but maybe there is a better way of doing this.

@ Andrew Morton:

The patch with a timeout is needed because the machine might be on a remote location and rebooted using lilo's once-only feature. An automatic reset after the panic will bring it back.