Skip to contentSkip to conversation

auto-loading of commands

DISCUSSION Yoshinori K. Okuji 2 participants 5 messages Mar 8, 2005 – Jul 9, 2005

lore
Share & tools
lore
#0 lore raw

I have added support for automatic loading of commands right now. Next, I'm going to add automatic loading of filesystems.

Okuji

#1 lore raw
Quoted 2 lines · Yoshinori K. Okuji

I have added support for automatic loading of commands right now. Next, I'm going to add automatic loading of filesystems.

Great!

Would it be possible to give filesystems priorities for loader and detecting?

For example some filesystems like UFS2 probe a lot of blocks to see if it has the superblock. This should have a lower priority than filesystems that only load block 0, 1 or 2 because those blocks are cached anyway.

Thanks,
Marco

#2 lore raw
Quoted 7 lines · Marco Gerards

Would it be possible to give filesystems priorities for loader and detecting?

For example some filesystems like UFS2 probe a lot of blocks to see if it has the superblock. This should have a lower priority than filesystems that only load block 0, 1 or 2 because those blocks are cached anyway.

Possible, but I suspect that it has no good effect. When you load filesystem modules, GRUB will access several blocks even if caching is efficient. The overhead of trying to mount UFS2 is only 4 accesses. So my feeling is that this would be negligible.

Anyway, I will implement a simple one first. If it looks too slow, we can improve it later.

Okuji

#3 lore raw
Quoted 2 lines · Yoshinori K. Okuji

Anyway, I will implement a simple one first. If it looks too slow, we can improve it later.

I'm sorry that it took so long, but I have implemented the auto-loading of filesystem modules. Now GRUB 2 creates a file named fs.lst at compile time. You must copy this file to /boot/grub to enable this feature.

BTW, the ext2 module is completely broken for me. When I execute 'ls (fd1)' where fd1 is a floppy image with ext2, I simply gets unaligned pointer blah blah. Marco, is this module working for you? I will take a look at this problem.

Okuji

#4 lore raw
Quoted 4 lines · Yoshinori K. Okuji

BTW, the ext2 module is completely broken for me. When I execute 'ls (fd1)' where fd1 is a floppy image with ext2, I simply gets unaligned pointer blah blah. Marco, is this module working for you? I will take a look at this problem.

Found the reason. The check for the regparm bug in aclocal.m4 was reverse. I corrected this, and all went fine.

Okuji