All of lore.kernel.org
 help / color / mirror / Atom feed
* Questions on some minor issues when upgrading from 0.48 to 0.56
@ 2013-02-13 19:26 Daniel Hoang
  2013-02-14  7:18 ` Wido den Hollander
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Hoang @ 2013-02-13 19:26 UTC (permalink / raw)
  To: ceph-devel@vger.kernel.org



Hi All,

Just in case these issues have not been reported yet, I am on ubuntu 12.04, upgrade librados2/librados-dev from 0.48 to 0.56, and I notice the following issues:

1. librados2 / librados-dev still reports minor version as 48

Should minor version changed to 56?

2. In 0.48, rados_pool_list(cluster, NULL, 0) can be used like a buffer size query, and it would return the buffer size required for the pool list buffer string. In 0.56, this call now returns error -22 instead, and I have to pass in a tmp_buf[32] and len = 32 in order for the call to return successfully. I check the current rados_pool_list API, and it does not mention anything about buffer and len should not be NULL, 0. 

May be this was a bug in 0.48, that we should not pass in NULL, 0 ?

Thanks for your help,
DanielH

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Questions on some minor issues when upgrading from 0.48 to 0.56
  2013-02-13 19:26 Questions on some minor issues when upgrading from 0.48 to 0.56 Daniel Hoang
@ 2013-02-14  7:18 ` Wido den Hollander
  2013-02-14 17:34   ` Daniel Hoang
  0 siblings, 1 reply; 3+ messages in thread
From: Wido den Hollander @ 2013-02-14  7:18 UTC (permalink / raw)
  To: Daniel Hoang; +Cc: ceph-devel@vger.kernel.org

Hi,

On 02/13/2013 08:26 PM, Daniel Hoang wrote:
>
>
> Hi All,
>
> Just in case these issues have not been reported yet, I am on ubuntu 12.04, upgrade librados2/librados-dev from 0.48 to 0.56, and I notice the following issues:
>
> 1. librados2 / librados-dev still reports minor version as 48
>
> Should minor version changed to 56?

No. From what I understand the librados version is only bumped when the 
API actually changes.

This indicates that the API is still the same as 0.48

>
> 2. In 0.48, rados_pool_list(cluster, NULL, 0) can be used like a buffer size query, and it would return the buffer size required for the pool list buffer string. In 0.56, this call now returns error -22 instead, and I have to pass in a tmp_buf[32] and len = 32 in order for the call to return successfully. I check the current rados_pool_list API, and it does not mention anything about buffer and len should not be NULL, 0.
>
> May be this was a bug in 0.48, that we should not pass in NULL, 0 ?
>

Take a look at this commit: 
https://github.com/ceph/ceph/commit/a677f47926b9640c53fbd00c94d6eb7a590a94fc

I ran into this with phprados as well: 
https://github.com/ceph/phprados/commit/ee8b87fe93f87f92a7c3fa197a33b3d2de2fc4b6

Wido

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


-- 
Wido den Hollander
42on B.V.

Phone: +31 (0)20 700 9902
Skype: contact42on

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Questions on some minor issues when upgrading from 0.48 to 0.56
  2013-02-14  7:18 ` Wido den Hollander
@ 2013-02-14 17:34   ` Daniel Hoang
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Hoang @ 2013-02-14 17:34 UTC (permalink / raw)
  To: Wido den Hollander; +Cc: ceph-devel@vger.kernel.org



Thanks Wido for the clarifications. 

I guessed this means that I can update the OSD cluster to 0.56, and client that was compiled with the old librados2 0.48 should still be able to access the cluster without any change. Client that compiled with the new librados2 0.56 (API level 0.48) has to fix that rados_pool_list before it can access the cluster.

DanielH


----- Original Message -----
From: Wido den Hollander <wido@42on.com>
To: Daniel Hoang <daniel_m_hoang@yahoo.com>
Cc: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Sent: Wednesday, February 13, 2013 11:18 PM
Subject: Re: Questions on some minor issues when upgrading from 0.48 to 0.56

Hi,

On 02/13/2013 08:26 PM, Daniel Hoang wrote:
>
>
> Hi All,
>
> Just in case these issues have not been reported yet, I am on ubuntu 12.04, upgrade librados2/librados-dev from 0.48 to 0.56, and I notice the following issues:
>
> 1. librados2 / librados-dev still reports minor version as 48
>
> Should minor version changed to 56?

No. From what I understand the librados version is only bumped when the 
API actually changes.

This indicates that the API is still the same as 0.48

>
> 2. In 0.48, rados_pool_list(cluster, NULL, 0) can be used like a buffer size query, and it would return the buffer size required for the pool list buffer string. In 0.56, this call now returns error -22 instead, and I have to pass in a tmp_buf[32] and len = 32 in order for the call to return successfully. I check the current rados_pool_list API, and it does not mention anything about buffer and len should not be NULL, 0.
>
> May be this was a bug in 0.48, that we should not pass in NULL, 0 ?
>

Take a look at this commit: 
https://github.com/ceph/ceph/commit/a677f47926b9640c53fbd00c94d6eb7a590a94fc

I ran into this with phprados as well: 
https://github.com/ceph/phprados/commit/ee8b87fe93f87f92a7c3fa197a33b3d2de2fc4b6

Wido

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


-- 
Wido den Hollander
42on B.V.

Phone: +31 (0)20 700 9902
Skype: contact42on
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-14 17:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-13 19:26 Questions on some minor issues when upgrading from 0.48 to 0.56 Daniel Hoang
2013-02-14  7:18 ` Wido den Hollander
2013-02-14 17:34   ` Daniel Hoang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.