--- On Sat, 2/7/09, Robert Millan <r...@aybabtu.com> wrote: > From: Robert Millan <r...@aybabtu.com> > Subject: Re: stat for FreeBSD > To: "The development of GRUB 2" <grub-devel@gnu.org> > Date: Saturday, February 7, 2009, 2:39 PM > On Mon, Dec 15, 2008 at 09:24:41AM -0800, Andrey Shuvikov > wrote: > > I don't have much experience developing under > FreeBSD but this call taken from the fdisk source code seems > to work (see attachment also): > > > > error = ioctl(fd, DIOCGMEDIASIZE, &size); > > This seems fine. Could you provide a tested patch? > > -- > Robert Millan > > The DRM opt-in fallacy: "Your data belongs to us. We > will decide when (and > how) you may access your data; but nobody's > threatening your freedom: we > still allow you to remove your data and not access it at > all." > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel
Here is the patch to make grub-probe working on FreeBSD. It includes this ioctl call, FreeBSD device names parsing, and accounts for the fact that disk drives are character devices under FreeBSD. Regards, Andrey Shuvikov
grub_probe_freebsd.patch
Description: Binary data
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel