Skip to contentSkip to conversation

Squashfs: add xattr file system support

PATCH In review Phillip Lougher 1 participant 1 message May 17, 2010 VFS

lore
Share & tools
lore
#0 lore raw

cover Squashfs: add xattr file system support

Hi,

The following patches add xattr file system support to Squashfs.

Xattr layout highlights

1. Layout can store up to 2^48 bytes of compressed xattr data.
2. Number of xattrs per inode unlimited.
3. Total size of xattr data per inode 2^48 bytes of compressed data.
4. Up to 4 Gbytes of data per xattr value.
5. Inline and out-of-line xattr values supported for higher performance in xattr scanning (listxattr & getxattr), and to allow xattr value de-duplication.
6. Both whole inode xattr duplicate detection and individual xattr value duplicate detection supported. These can obviously nest, file C's xattrs can be a complete duplicate of file B, and file B's xattrs can be a partial duplicate of file A.
7. Xattr name prefix types stored, allowing the redundant "user.", "trusted." etc. characters to be eliminated and more concisely stored.
8. Support for files, directories, symbolic links, device nodes, fifos and sockets.

Xattr support for mksquashfs is in Squashfs CVS here

http://sourceforge.net/projects/squashfs/develop

These patches are also in git, here

git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-xattr.git master

gitweb http://git.kernel.org/?p=linux/kernel/git/pkl/squashfs-xattr.git;a=summary

Phillip