On Fri, May 11, 2007 at 08:48:43AM +0200, Robert Millan wrote:
>
> $ time sudo grub-probe -t partmap /boot/grub
> pc
>
> real 0m0.469s
> user 0m0.000s
> sys 0m0.088s
>
> Not sure why /dev/hda is so slow though. Maybe it's a bug, but not an
> important one.
Actually I think we can do much better with our own simple program that uses
libparted. See attachment.
On my amd64 sid, compiled with -Os and stripped it just takes 5224 bytes.
--
Robert Millan
My spam trap is honeypot@aybabtu.com. Note: this address is only intended
for spam harvesters. Writing to it will get you added to my black list.