All of lore.kernel.org
 help / color / mirror / Atom feed
* Check for device type (block/character) in grub-setup?
@ 2010-01-03  2:54 Grégoire Sutre
  2010-01-03 16:52 ` Robert Millan
  0 siblings, 1 reply; 4+ messages in thread
From: Grégoire Sutre @ 2010-01-03  2:54 UTC (permalink / raw)
  To: The development of GNU GRUB

Hi,

I'm wondering why there is no check for device type (block/character) in 
grub-setup.c whereas the function probe() in grub-probe.c exits with 
error if the device is not of the expected type. Shouldn't there be a 
similar check in grub-setup?

Currently, on NetBSD (with in-progress patches), grub-setup fails with 
an `out of disk error' on a block device as the detected disk size is 0, 
whereas grub-probe exits gracefully with an error message telling that 
the input device is not a character device.  I guess that a similar 
behavior could be observed on FreeBSD, but I can't actually test this.

Thanks,

Grégoire



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-07 19:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-03  2:54 Check for device type (block/character) in grub-setup? Grégoire Sutre
2010-01-03 16:52 ` Robert Millan
2010-01-07 17:31   ` Grégoire Sutre
2010-01-07 19:35     ` Robert Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.