RE: [PATCH 1/2] xattr support for ext2fs

2016-07-07 Thread LastAvengers
> ext4 on Linux 4.5 already uses 7 for EXT4_XATTR_INDEX_SYSTEM > but lists it in neither ext4_xattr_handler_map nor > ext4_xattr_handlers. I think that means the index does not map > to any prefix visible to user mode, not even to > #define XATTR_SYSTEM_PREFIX "system.". Instead, ext4 uses > { EXT4

Re: [PATCH 1/2] xattr support for ext2fs

2016-07-07 Thread Kalle Olavi Niemitalo
LastAvengers writes: > +/* Prefixes are represented as numbers when stored in ext2 filesystems. */ > +struct _xattr_prefix > +xattr_prefixes[] = > +{ > + { > + 1, "user.", sizeof "user." - 1}, > + { > + 7, "gnu.", sizeof "gnu." - 1}, > + { > + 0, NULL, 0} > +}; ext4 on Linux 4.5 already us

[PATCH 1/2] xattr support for ext2fs

2016-07-06 Thread LastAvengers
Hi all, Here is the result of the first stage of my GSoC project. The xattr support for ext2fs has implemented. This patch is base on cascardo's previous work[1], Only 2 namespaces ("user." and "gnu.") are supported, as other namespaces are useless on hurd now. thanks for braunr and teythoon's m