Re: rbd and Metaserver

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

 



Hi  Sage,

If I use librados:

    int create(const std::string& oid, bool exclusive);
    int write(const std::string& oid, bufferlist& bl, size_t len, uint64_t off);
    int read(const std::string& oid, bufferlist& bl, size_t len, uint64_t off);

MDS is not required to be running either?

What does the oid mean,  is there any relation between oid and the
object file name when it's dropped into an OSD server, like
"current/0.c5_head/10000000004.000001ba_head"?


Thx very much!


2011/5/6 Sage Weil <sage@xxxxxxxxxxxx>:
> On Fri, 6 May 2011, tsk wrote:
>> 2011/5/6 Gregory Farnum <gregory.farnum@xxxxxxxxxxxxx>:
>> > Nope, the MDS is only required for the POSIX-compliant Ceph layer.
>> > -Greg
>>
>> May I know that who will maintain the rbd_image_info if there is no MDS?
>> From where, the api int rbd_list(rados_ioctx_t io, char *names, size_t
>> *size) Âwill get the data it want?
>
> The rbd image header is stored as just another object in the object store.
>
> sage
>
--
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