how ceph store xattr

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

 



On Thu, Jul 31, 2014 at 2:41 AM, yuelongguang <fastsync at 163.com> wrote:
> hi,all
> 1.
> it seems that there are 2 kinds of function  that get/set xattrs.
> one kind start with collection_*,the another one start with omap_*.
> what is the differences between them, and what xattrs use which kind of
> function?

IIRC, the collection_* functions are storing data in the local
filesystem xattrs, while omap_* functions are storing data in omap
(aka leveldb, by default) keys for that file. These are not
distinguishable by the user; they're just xattrs.

> 2.
> there is a xattr that tells whethe xattrs are stored on leveldb , what is
> that xattr?

#define XATTR_SPILL_OUT_NAME "user.cephos.spill_out"

Of course, these answers are specific to the FileStore implementation,
and it's all invisible to upper layers...
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com


[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux