Skip to contentSkip to conversation

attrib +A doesn't work

DISCUSSION Tom Vier 5 participants 9 messages Sep 5, 2002 – Oct 24, 2002

lore
Share & tools
lore

Tom Vier

author
#0 lore raw

i thought 3.6 support attribs (or at least some of them), but A isn't working. i ran touch test; chattr +A test; stat test; cat test; stat test; the second stat showed an updated atime.

is there some undocumented mount option to enable attribs?

Signature · 2 lines
Tom Vier <[email protected]>
DSA Key ID 0xE6CB97DA
#1 lore raw
Quoted 5 lines · Tom Vier

i thought 3.6 support attribs (or at least some of them), but A isn't working. i ran touch test; chattr +A test; stat test; cat test; stat test; the second stat showed an updated atime.

is there some undocumented mount option to enable attribs?

Yes.

Support for inode attributes was introduced between 2.4.18 and 2.4.19. Take latest reiserfsprogs from ftp.namesys.com, run /sbin/reiserfsck --clean-attributes /your-device, and after that finishes mount with -attrs option.

Quoted 4 lines
Signature · 3 lines
-- 
Tom Vier <[email protected]>
DSA Key ID 0xE6CB97DA

Nikita.

#2 lore raw

Hello!

Quoted 4 lines · Nikita Danilov

Support for inode attributes was introduced between 2.4.18 and 2.4.19. Take latest reiserfsprogs from ftp.namesys.com, run /sbin/reiserfsck --clean-attributes /your-device, and after that finishes mount with -attrs option.

mount -o attrs in fact.

Bye,
Oleg

#3 lore raw
Quoted 1 line

mount -o attrs in fact.

I'm not sure if this is the right place to report this...

The 'attrs' mount option is broken with kernels 2.4.20-pre2 through -pre5 (the latest as of this email).

See "license cleanup" patch found here:

ftp://ftp.namesys.com/pub/reiserfs-for-2.4/2.4.19.pending/01-license_cleanup.diff

It contains a re-work of reiserfs_parse_options() in super.c that removes the 'attrs' option. Perhaps a merge error or simple omission.

Trivial fix:

fs/reiserfs/super.c +1 -0
diff -ur linux-2.4.19-orig/fs/reiserfs/super.c linux-2.4.19/fs/reiserfs/super.c
@@ -560,6 +560,7 @@
     char * pos;
     opt_desc_t opts[] = {
 		{"tails", 't', tails, -1},
+		{"attrs", 0, 0, REISERFS_ATTRS},
 		{"notail", 0, 0, -1}, /* Compatibility stuff, so that -o notail for old setups still work */
 		{"conv", 0, 0, REISERFS_CONVERT}, 
 		{"nolog", 0, 0, -1},

--Allen Ibara

#4 lore raw

Hello!

Quoted 2 lines · Allen H. Ibara
Quoted 1 line

mount -o attrs in fact.

I'm not sure if this is the right place to report this...

Sure it is.

Quoted 6 lines

The 'attrs' mount option is broken with kernels 2.4.20-pre2 through -pre5 (the latest as of this email).
See "license cleanup" patch found here:
ftp://ftp.namesys.com/pub/reiserfs-for-2.4/2.4.19.pending/01-license_cleanup.diff It contains a re-work of reiserfs_parse_options() in super.c that removes the 'attrs' option. Perhaps a merge error or simple omission.

Thanks a lot for letting us know.
Somehow this omission got past our testing.

Bye,
Oleg

#5 lore raw
In reply to Oleg Drokin

[Old thread.]

Quoted 7 lines · Oleg Drokin
Quoted 4 lines · Nikita Danilov

Support for inode attributes was introduced between 2.4.18 and 2.4.19. Take latest reiserfsprogs from ftp.namesys.com, run /sbin/reiserfsck --clean-attributes /your-device, and after that finishes mount with -attrs option.

mount -o attrs in fact.

Should -o attrs be used just once, or every time afterwards?

paul

#6 lore raw
Quoted 4 lines · Paul Jarc

[Old thread.]

Quoted 1 line · Oleg Drokin

On Thu, Sep 05, 2002 at 01:57:34PM +0400, Nikita Danilov wrote:

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

Support for inode attributes was introduced between 2.4.18 and 2.4.19. Take latest reiserfsprogs from ftp.namesys.com, run /sbin/reiserfsck --clean-attributes /your-device, and after that finishes mount with -attrs option.

mount -o attrs in fact.

Should -o attrs be used just once, or every time afterwards?

On each mount. Does attribute support actually works for you?

Quoted 2 lines

paul

Nikita.

#7 lore raw
Quoted 4 lines · Nikita Danilov
Quoted 1 line · Paul Jarc

Should -o attrs be used just once, or every time afterwards?

On each mount. Does attribute support actually works for you?

I just did a quick test with chattr +A, and it seemed to work. Out of curiosity, what would happen if I forgot to use attrs once? I'm guessing attributes would not take effect and could not be changed until I remounted, but once I did, the stored attributes wouldn't be lost, right? Also, is there any way to make attrs and notail show up in /proc/mounts?

paul

#8 lore raw
Quoted 4 lines · Paul Jarc
Quoted 3 lines · Nikita Danilov
Quoted 1 line · Paul Jarc

Should -o attrs be used just once, or every time afterwards?

Quoted 8 lines
Quoted 1 line

On each mount. Does attribute support actually works for you?

I just did a quick test with chattr +A, and it seemed to work. Out of curiosity, what would happen if I forgot to use attrs once? I'm guessing attributes would not take effect and could not be changed until I remounted, but once I did, the stored attributes wouldn't be lost, right? Also, is there any way to make attrs and notail show up in /proc/mounts?

Only after Halloween, I am afraid.

Quoted 3 lines

paul

Nikita.