Re: [PATCH] Don't look for a partition map on a floppy

2012-06-15 Thread Robert Mabee
Minix floppies are partitioned. Facts are such inconvenient things. I'm still looking for a way to iterate through partitions without incurring the floppy timeout, something like this: for dev in *; do if ! regexp "\(fd[0-9]\)" $dev; then for part in ($dev,*); do I can see how to c

Re: [PATCH] Don't look for a partition map on a floppy

2012-06-14 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 15.06.2012 07:10, Robert Mabee wrote: > "echo *" takes about 12 seconds on my system (PC, BIOS, empty floppy drive) > because grub_partition_iterate tries to enumerate the partitions on the > floppy. > "search --no-floppy" probably hits the same delay (not verified) since > it has to > generate

[PATCH] Don't look for a partition map on a floppy

2012-06-14 Thread Robert Mabee
"echo *" takes about 12 seconds on my system (PC, BIOS, empty floppy drive) because grub_partition_iterate tries to enumerate the partitions on the floppy. "search --no-floppy" probably hits the same delay (not verified) since it has to generate the partition names before it can discard fd[0-9]