[Ocfs2-tools-devel] [PATCH 1/5] ocfs2-tools: add xattr definition in ocfs2_fs.h

Tiger Yang tiger.yang at oracle.com
Mon Oct 27 02:12:39 PDT 2008


regenerate the patch with tao's fix.

thanks,
tiger

Tao Ma wrote:
> Hi Coly,
> 
> Coly Li wrote:
>>
>> Tiger Yang Wrote:
>>> This patch add xattr definitions in ocfs2_fs.h,
>>> which is copy from mainline head file.
>>>
>>> Signed-off-by: Tiger Yang <tiger.yang at oracle.com>
>>> +struct ocfs2_xattr_entry {
>>> +    __le32    xe_name_hash;    /* hash value of xattr prefix+suffix. */
>>> +    __le16    xe_name_offset;  /* byte offset from the 1st etnry in 
>>> the local
>>> +                    local xattr storage(inode, xattr block or
>> "local local xattr" to "local xattr" ?
>>
>>> +                    xattr bucket). */
>>> +    __u8    xe_name_len;     /* xattr name len, does't include 
>>> prefix. */
>>> +    __u8    xe_type;         /* the low 7 bits indicates the name 
>>> prefix's
>>> +                  * type and the highest 1 bits indicate whether
>> "1 bits indicate" to "1 bit indicates" ?
>>
>>> +                  * the EA is stored in the local storage. */
>>> +    __le64    xe_value_size;     /* real xattr value length. */
>>> +};
>>> +
> This is really my fault. I wrote this in kernel and tiger just copy them 
> out to the userspace. Thanks for pointing them out. I will generate a 
> patch for this.
> 
> Regards,
> Tao

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ocfs2-tools-add-xattr-definition-in-ocfs2_fs.h.patch
Type: text/x-patch
Size: 8640 bytes
Desc: not available
Url : http://oss.oracle.com/pipermail/ocfs2-tools-devel/attachments/20081027/01e4df4e/attachment.bin 


More information about the Ocfs2-tools-devel mailing list