[PATCH] OpenSolaris/ZFS: C++ compatibility

Pawel Jakub Dawidek pjd at FreeBSD.org
Sat Feb 5 15:39:45 UTC 2011


On Fri, Feb 04, 2011 at 11:03:53AM -0700, Justin T. Gibbs wrote:
> The attached patch is sufficient to allow a C++ program to use libzfs.
> The motivation for these changes is work I'm doing on a ZFS fault
> handling daemon that is written in C++.  SpectraLogic's intention
> is to return this work to the FreeBSD project once it is a bit more
> complete.
> 
> Since these changes modify files that come from OpenSolaris, I want to be
> sure I understand the project's policies regarding divergence from
> the vendor before I check them in.  All of the changes save one should
> be trivial to merge with vendor changes and I will do that work for the
> v28 import.  Is there any reason I should not commit these changes?

Now that OpenSolaris is dead we don't have to be so strict with keeping
the diff against vendor small at all cost. I'd prefer not to modify
vendor code whenever possible so it is easier for us to cooperate with
IllumOS (we already took ome code from them).

Me and my company are also interested in fault management daemon
(although not restricted to ZFS, but a more general purpose mechanism
like FMA in Solaris). My question would be are there any chances you may
be convinced to use plain C? With C we might be able to help, but not
with C++.

-- 
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/freebsd-current/attachments/20110205/b35e0fdc/attachment.pgp


More information about the freebsd-current mailing list