Re: Newbie question about metadata_list.

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

 



On Fri, Aug 7, 2015 at 10:12 AM, Łukasz Szymczyk
<lukasz.szymczyk@xxxxxxxxxxxx> wrote:
> On Thu, 6 Aug 2015 15:01:54 +0300
> Ilya Dryomov <idryomov@xxxxxxxxx> wrote:
>
> Hi,
>
>> On Thu, Aug 6, 2015 at 12:26 PM, Łukasz Szymczyk
>> <lukasz.szymczyk@xxxxxxxxxxxx> wrote:
>> > Hi,
>> >
>> > I'm writing some program to replace image in cluster with it's copy.
>> > But I have problem with metadata_list.
>
>> >         librbd::ImageCtx *ic = (librbd::ImageCtx*)im;
>> >         std::string start;
>> >         int max = 1000;
>> >         bufferlist in, out;
>> >         ::encode(start, in);
>> >         ::encode(max, in);
>> >         ret = ((librados::IoCtx*)&io)->exec(ic->header_oid, "rbd", "metadata_list", in, out);
>> >         if (ret < 0) printf("fail\n");
>>
>> You should use rbd_metadata_list() C API instead of this.
>
> Looks like my ceph version doesn't have it.
>
>>
>> >
>> >         return 0;
>> >
>> > }
>> >
>> > So, my question is: what should be set/enabled to get those metadata?
>> > Or maybe what I'm doing wrong here.
>>
>> Try "rbd image-meta list image"?
>
> I've got this:
> # rbd image-meta list image
> rbd: error parsing command 'image-meta'; -h or --help for usage
>
>>
>> It's a fairly recent feature, are you sure your OSDs support it?
>> What's the output of "ceph daemon osd.0 version"?
>
> # ceph daemon osd.0 version
> {"version":"0.80.9"}

image metadata was introduced in v9.0.0.

Thanks,

                Ilya
--
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