svn commit: r216649 - projects/graid/head/sys/geom/raid

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu Dec 23 09:47:09 UTC 2010


On Thu, Dec 23, 2010 at 11:13:01AM +0200, Alexander Motin wrote:
> Pawel Jakub Dawidek wrote:
> > On Wed, Dec 22, 2010 at 09:02:22AM +0000, Alexander Motin wrote:
> >> Author: mav
> >> Date: Wed Dec 22 09:02:22 2010
> >> New Revision: 216649
> >> URL: http://svn.freebsd.org/changeset/base/216649
> >>
> >> Log:
> >>   Implement basic metadata generation check. To be sure that used metadata is
> >>   up to date - delay volumes creation until we have all disks or timeout
> >>   expires. This probably obsolete same functionality done at volumes level.
> > [...]
> >> +static struct intel_raid_conf *
> >> +intel_meta_copy(struct intel_raid_conf *meta)
> >> +{
> >> +	struct intel_raid_conf *nmeta;
> >> +
> >> +	nmeta = malloc(meta->config_size, M_MD_INTEL, M_WAITOK | M_ZERO);
> >> +	memcpy(nmeta, meta, meta->config_size);
> >> +	return (nmeta);
> >> +}
> > 
> > The M_ZERO flag seems to be redundant, as you fill the entire buffer in
> > the next line.
> 
> Indeed. Thanks. But I am sure it is not the biggest of my problems. :)

:) If you have any GEOM-related questions, don't hesitate to ask. When
you'll have a version that is ready for a full review, let me know and
I'll try to find some time to do it.

Is your class going to be generally usable or you just want to support
those pseudo-hardware RAIDs? If the former and you're planning to
eventually relace gmirror/gstripe/gconcat with it, would be also nice to
keep RAID3 support.

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-projects/attachments/20101223/d8d2f7da/attachment.pgp


More information about the svn-src-projects mailing list