ZFS and __FreeBSD_version

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri May 14 06:13:21 UTC 2010


On Fri, May 14, 2010 at 08:52:00AM +0300, Kostik Belousov wrote:
> On Thu, May 13, 2010 at 11:17:50PM +0200, Pawel Jakub Dawidek wrote:
> > On Thu, May 13, 2010 at 07:44:52AM -0400, John Baldwin wrote:
> > > Boris Kochergin wrote:
> > > >Hi. Can __FreeBSD_version be bumped if ZFS's userland API is ever 
> > > >changed again? I got slightly bitten by the 
> > > >state_to_name()-to-zpool_state_to_name() change from version 6 to 
> > > >version 13 and would like a reliable way of keeping track of this type 
> > > >of stuff in the future. Thanks.
> > > 
> > > Yes, it should be bumped anytime the API changes.  That is definitely a 
> > > bug that it wasn't done properly last time.
> > 
> > I must disagree here. libzfs API is for ZFS internal use only and is
> > subject to change at any time. This is true for OpenSolaris as well.
> > We, of course, can bump __FreeBSD_version if it helps, but one shouldn't
> > expect libzfs API being stable or there is any care taken to maintain
> > backward compatibility.
> 
> I agree with you, but please note that the _library_ version bump on import
> would be right and useful thing, if not already done.

No it wasn't done. It probably should be done to avoid confusion,
although it is still unlikely that old libzfs.so left after upgrade will
work with zfs.ko.

-- 
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-fs/attachments/20100514/ef1d10f3/attachment.pgp


More information about the freebsd-fs mailing list