Skip to content

Instantly share code, notes, and snippets.

@pauldardeau
Created August 18, 2016 20:23
Show Gist options
  • Select an option

  • Save pauldardeau/1887ef0f4134b40b951db914c32ecccb to your computer and use it in GitHub Desktop.

Select an option

Save pauldardeau/1887ef0f4134b40b951db914c32ecccb to your computer and use it in GitHub Desktop.
Extended Attributes
XFS - http://xfs.org/docs/xfsdocs-xml-dev/XFS_Filesystem_Structure/tmp/en-US/html/Extended_Attributes.html
The attribute names can be up to 256 bytes in length, terminated by the first 0 byte. The intent is that they be printable ASCII (or other character set) names for the attribute. The values can be up to 64KB of arbitrary binary data.
Linux - http://man7.org/linux/man-pages/man7/xattr.7.html
The VFS imposes limitations that an attribute names is limited to 255
bytes and an attribute value is limited to 64 kB.
In the current ext2, ext3, and ext4 filesystem implementations, the
total bytes used by the names and values of all of a files extended
attributes must fit in a single filesystem block (1024, 2048 or 4096
bytes, depending on the block size specified when the filesystem was
created).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment