Re: [patch] fixes for kernel of FreeBSD

2006-04-21 Thread Robert Millan
Or better this one instead. Additionaly it avoids the third sysctl call when the second one failed (i.e. we were unable to set the flags, therefore we don't need to set them back). 2006-04-21 Robert Millan <[EMAIL PROTECTED]> * grub/asmstub.c (get_diskinfo): Optimize sysctl routine.

Re: [patch] fixes for kernel of FreeBSD

2006-04-21 Thread Robert Millan
Followup to my previous sysctl commit. When modifying kern.geom.debugflags is not necessary, this avoids the third sysctlbyname() call (and allocating "flags" into the stack ;)). 2006-04-21 Robert Millan <[EMAIL PROTECTED]> * grub/asmstub.c (get_diskinfo): Optimize sysctl routine. In

[patch] fixes for kernel of FreeBSD

2006-04-20 Thread Robert Millan
Hi! Please consider: 2006-04-20 Robert Millan <[EMAIL PROTECTED]> Fixes for kernel of FreeBSD: * grub/asmstub.c (get_diskinfo): Toggle "kern.geom.debugflags" sysctl before opening a device for writing. * util/grub-install.in: Devices don't have this "r" prefix