Re: librados.h version numbers

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

 



> Op 8 september 2016 om 3:08 schreef Gregory Farnum <gfarnum@xxxxxxxxxx>:
> 
> 
> On Tue, Sep 6, 2016 at 4:16 PM, Josh Durgin <jdurgin@xxxxxxxxxx> wrote:
> > On 09/06/2016 12:18 PM, Wido den Hollander wrote:
> >>
> >> Hi,
> >>
> >> wido@wido-laptop:~$ python -c "import rados; r = rados.Rados();
> >> print(r.version())"
> >> 0.69.1
> >> wido@wido-laptop:~$ dpkg -l|grep rados|awk '{print $2" "$3}'
> >> librados-dev 10.2.2-1trusty
> >> librados2 10.2.2-1trusty
> >> libradosstriper1 10.2.2-1trusty
> >> python-rados 10.2.2-1trusty
> >> wido@wido-laptop:~$
> >>
> >> Looking at librados.h in master I see:
> >>
> >> #define LIBRADOS_VER_MAJOR 0
> >> #define LIBRADOS_VER_MINOR 69
> >> #define LIBRADOS_VER_EXTRA 1
> >>
> >> Is this something which has just been forgotten to update?
> >
> >
> > Pretty much. Not much has relied on the librados/librbd version numbers
> > of this style. Adding tests for particular functions can be more
> > reliable than checking version numbers, since sometimes functions are
> > backported.
> >
> >> Looking at the 'ceph' tool I see:
> >>
> >> CEPH_GIT_NICE_VER="10.2.2"
> >>
> >> This is updated during packaging/build it seems.
> >>
> >> Should we maybe do that for librados.h as well?
> >
> >
> > I see no reason not to.
> 
> We at one point were trying to only increment the librados library
> version when stuff actually changed. Shockingly, that manual
> maintenance mostly resulted in it not getting updated. ;)
> But is it really that helpful to just provide another way of exposing
> the package version, instead of doing something that actually
> illustrates what functions are around? :/

I was using some Python code to gather Ceph information ( https://github.com/42on/ceph-collect ). One of the things I wanted to know is the installed Ceph version and I used the version() method.

It kept giving back 0.69.1 so I started looking into that.

I just try to avoid calling subprocesses when this isn't required.

Since the version() method is unreliable in giving back the version, what to do with it?

Wido

> -Greg
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux