Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 May 2011 13:43:23 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Doug Rabson <dfr@rabson.org>
Cc:        FreeBSD Arch <freebsd-arch@FreeBSD.org>
Subject:   Re: arch-independent disks in sys/boot, libstand
Message-ID:  <4DCA684B.4020400@FreeBSD.org>
In-Reply-To: <BANLkTik6709-66dXy2RB3Qy6FgRBmJ5hGA@mail.gmail.com>
References:  <4DC95006.1020404@FreeBSD.org> <BANLkTik6709-66dXy2RB3Qy6FgRBmJ5hGA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
on 11/05/2011 12:16 Doug Rabson said the following:
> There is an example of this in sys/boot/zfs. The approach taken is to scan
> physical drives as they appear and piece them together into ZFS pools based on the
> drive metadata. The pools appear as devices in the device table and the actual ZFS
> filesystem reader is built on top of that.

Yes, thank you, I've seen that code.
My question was not specific enough - I am interested in the things like
i386_fmtdev vs other archs, i386_parsedev vs other archs, struct i386_devdesc vs
other archs, etc.
I.e. I would like to make ZFS representable (in some shape) via struct devdesc.
But it seems that every supported arch has its own extension of struct devdesc
that it uses and its own set of functions to work with that struct.
Or, using another example, I'd like to be able to specify something like
"zfs:/pool/fs:/boot/kernel" as a kernel name and have that work for all archs.
I'd hate to duplicate code that would handle that acress all xxx_parsedev
implementations for all architectures.

> On 10 May 2011 10:47, Andriy Gapon <avg@freebsd.org <mailto:avg@freebsd.org>> wrote:
> 
> 
>     I would like to ask for an advice about where/how to implement architecture
>     independent disk type(s) for sys/boot.  The types would be logical disks built on
>     top of physical architecture-specific disks/partitions.  Possible examples are:
>     ZFS pools, LVM volumes, etc.
> 
>     --
>     Andriy Gapon
>     _______________________________________________
>     freebsd-arch@freebsd.org <mailto:freebsd-arch@freebsd.org> mailing list
>     http://lists.freebsd.org/mailman/listinfo/freebsd-arch
>     To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org
>     <mailto:freebsd-arch-unsubscribe@freebsd.org>"
> 
> 


-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DCA684B.4020400>