• Tao Ma's avatar
    ocfs2: Add the basic xattr disk layout in ocfs2_fs.h · 5a7bc8eb
    Tao Ma authored
    Ocfs2 uses a very flexible structure for storing extended attributes on
    disk. Small amount of attributes are stored directly in the inode block - up
    to 256 bytes worth. If that fills up, attributes are also stored in an
    external block, linked to from the inode block. That block can in turn
    expand to a btree, capable of storing large numbers of attributes.
    
    Individual attribute values are stored inline if they're small enough
    (currently about 80 bytes, this can be changed though), and otherwise are
    expanded to a btree. The theoretical limit to the size of an individual
    attribute is about the same as an inode, though the kernel's upper bound on
    the size of an attributes data is far smaller.
    Signed-off-by: default avatarTao Ma <tao.ma@oracle.com>
    Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
    5a7bc8eb
ocfs2_fs.h 31.2 KB