[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stat for FreeBSD

From: Andrey Shuvikov
Subject: Re: stat for FreeBSD
Date: Thu, 12 Mar 2009 09:24:46 -0700 (PDT)

--- On Sat, 2/7/09, Robert Millan <address@hidden> wrote:

> From: Robert Millan <address@hidden>
> Subject: Re: stat for FreeBSD
> To: "The development of GRUB 2" <address@hidden>
> 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
> address@hidden

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.

Andrey Shuvikov


Attachment: grub_probe_freebsd.patch
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]