Skip to contentSkip to conversation

extended attributes

DISCUSSION Russell Coker 6 participants 8 messages Oct 23, 2002 – Nov 18, 2002

lore
Share & tools
lore
#0 lore raw

Extended attribute support is apparently in 2.5.x kernels now and will be in 2.4.20.

When will ReiserFS support extended attributes?

Currently there is discussion about the possibility of using extended attributes for SE Linux security context labels, if that goes ahead then I will be forced to cease using any file system that lacks such support.

I would like to continue using ReiserFS...

Signature · 4 lines
http://www.coker.com.au/bonnie++/     Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/       Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/     My home page
#1 lore raw
Quoted 10 lines · Russell Coker

Extended attribute support is apparently in 2.5.x kernels now and will be in 2.4.20.

When will ReiserFS support extended attributes?

Currently there is discussion about the possibility of using extended attributes for SE Linux security context labels, if that goes ahead then I will be forced to cease using any file system that lacks such support.

I would like to continue using ReiserFS...

www.namesys.com/v4/v4.html, look for us to start focussing on that as soon as basic reiser4 stuff is stable.

#2 lore raw
Quoted 6 lines · Hans Reiser
Quoted 4 lines · Russell Coker

Extended attribute support is apparently in 2.5.x kernels now and will be in 2.4.20.

When will ReiserFS support extended attributes?

Quoted 7 lines
Quoted 6 lines

Currently there is discussion about the possibility of using extended attributes for SE Linux security context labels, if that goes ahead then I will be forced to cease using any file system that lacks such support.

I would like to continue using ReiserFS...

www.namesys.com/v4/v4.html, look for us to start focussing on that as soon as basic reiser4 stuff is stable.

BTW, I find the artistic grafic work on these pages great and especially find it beautifully "translating" the theories' content sometimes.

Best wishes to the person who created those images for you & ReiserFS :-)))

Manuel

#3 lore raw
Quoted 18 lines · Manuel Krause
Quoted 6 lines · Hans Reiser
Quoted 4 lines · Russell Coker

Extended attribute support is apparently in 2.5.x kernels now and will be in 2.4.20.

When will ReiserFS support extended attributes?

Quoted 7 lines
Quoted 6 lines

Currently there is discussion about the possibility of using extended attributes for SE Linux security context labels, if that goes ahead then I will be forced to cease using any file system that lacks such support.

I would like to continue using ReiserFS...

www.namesys.com/v4/v4.html, look for us to start focussing on that as soon as basic reiser4 stuff is stable.

Quoted 8 lines

BTW, I find the artistic grafic work on these pages great and especially find it beautifully "translating" the theories' content sometimes.

Best wishes to the person who created those images for you & ReiserFS :-)))

Manuel

Beverly (my Mom) did the drawings, I am trying to get her to do more.

Hans

#4 lore raw
In reply to Russell Coker
Quoted 10 lines · Russell Coker

Extended attribute support is apparently in 2.5.x kernels now and will be in 2.4.20.

When will ReiserFS support extended attributes?

Currently there is discussion about the possibility of using extended attributes for SE Linux security context labels, if that goes ahead then I will be forced to cease using any file system that lacks such support.

I would like to continue using ReiserFS...

I would think that it would be practical to just store the EA data as a separate file internally, if you are using tail packing. That avoids the need to have a separate data format for EAs entirely.

What I would probably do is have an EA pointer from each inode. It would just point to a directory and the EAs would be files with the filename == attribute name. You can probably do special packing so that this is stored efficiently...

Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/

#5 lore raw
Quoted 12 lines · Andreas Dilger
Quoted 10 lines · Russell Coker

Extended attribute support is apparently in 2.5.x kernels now and will be in 2.4.20.

When will ReiserFS support extended attributes?

Currently there is discussion about the possibility of using extended attributes for SE Linux security context labels, if that goes ahead then I will be forced to cease using any file system that lacks such support.

I would like to continue using ReiserFS...

Quoted 9 lines

I would think that it would be practical to just store the EA data as a separate file internally, if you are using tail packing. That avoids the need to have a separate data format for EAs entirely.

What I would probably do is have an EA pointer from each inode. It would just point to a directory and the EAs would be files with the filename == attribute name. You can probably do special packing so that this is stored efficiently...

The suse kernels include reiserfs extended attribute and acl support (the bestbits.at interface, reiserfs part by Jeff Mahoney).

We did it without changing the metadata format at all, which means putting each xattr into a file. The patches are mired in dependencies from other parts of the suse kernel, we're trying to pull it all out.

Until then you can grab the kernels/source at ftp.suse.com/pub/people/mantel/next (warning, these are the suse bleeding edge kernels).

-chris

#6 lore raw
Quoted 7 lines · Chris Mason

We did it without changing the metadata format at all, which means putting each xattr into a file. The patches are mired in dependencies from other parts of the suse kernel, we're trying to pull it all out.

Until then you can grab the kernels/source at ftp.suse.com/pub/people/mantel/next (warning, these are the suse bleeding edge kernels).

Unfortunately that will probably conflict with the LSM kernel patch. LSM touches so many things that almost any patch of moderate size will conflict. :(

I look forward to seeing this get extracted out in a minimal form.

Signature · 4 lines
http://www.coker.com.au/bonnie++/     Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/       Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/     My home page
#7 lore raw
In reply to Chris Mason
Quoted 3 lines · Chris Mason
Quoted 2 lines · Andreas Dilger
Quoted 1 line · Russell Coker

Extended attribute support is apparently in 2.5.x kernels now and wil=

l be in=20

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

2.4.20.
=20
When will ReiserFS support extended attributes?
=20
Currently there is discussion about the possibility of using extended=

=20

Quoted 1 line
Quoted 1 line
Quoted 1 line

attributes for SE Linux security context labels, if that goes ahead t=

hen I=20

Quoted 13 lines
Quoted 13 lines
Quoted 3 lines

will be forced to cease using any file system that lacks such support. =20
I would like to continue using ReiserFS...

=20
I would think that it would be practical to just store the EA data as a separate file internally, if you are using tail packing. That avoids the need to have a separate data format for EAs entirely. =20
What I would probably do is have an EA pointer from each inode. It would just point to a directory and the EAs would be files with the filename =3D=3D attribute name. You can probably do special packing so that this is stored efficiently...
=20

Quoted 11 lines

=20
The suse kernels include reiserfs extended attribute and acl support (the bestbits.at interface, reiserfs part by Jeff Mahoney). =20
We did it without changing the metadata format at all, which means putting each xattr into a file. The patches are mired in dependencies from other parts of the suse kernel, we're trying to pull it all out. =20 =20
Until then you can grab the kernels/source at ftp.suse.com/pub/people/mantel/next (warning, these are the suse bleeding edge kernels).

Hey all -

Sorry for the delay in getting this patch out. There was a bug that for some reason didn't occur in the SuSE kernel, and it took me some time to finally track it down. The code has completed four days of my standard xattr stress load succesfully.

The stress load I typically run for these patches is:
* default ACL set in the FS root
* fs_stress 20
* stress.sh -n 50
* myattr.pl, which goes through the stress.sh tree and applies random user xattrs to files until interrupted

Prerequisites:
* Chris's data logging patches (ftp://ftp.suse.com/pub/people/mason)
- For nested transactions
* Andreas Gruenbacher's acl/ea patches (http://acl.bestbits.at)
- For the ACL/EA infrastructure

Two patches to get (ftp://ftp.suse.com/pub/people/jeffm/reiserfs/aclea)
* 01-inode_read_write-atomic.diff - dependency in reiserfs_setattr
* 02-reiserfs-acl.diff - the xattr/acl patches themselves

A few config options:
* CONFIG_REISERFS_FS_XATTR - enables xattrs in general for reiserfs
* CONFIG_REISERFS_FS_XATTR_USER - enables user xattrs for reiserfs
* CONFIG_REISERFS_FS_POSIX_ACL - enables posix acls for reiserfs

Questions/comments welcome and appreciated.

Enjoy.

The patches were originally attached to this message, but the reiserfs-list mailer killed them for being too large. The SuSE ftp site may take a little while to update.

-Jeff

--
Jeff Mahoney
[email protected]
[email protected]