Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125428 - 2.6.15-gentoo-r7 has nonfunctional file attributes
Summary: 2.6.15-gentoo-r7 has nonfunctional file attributes
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
: 125413 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-07 19:00 UTC by N. Andrew Walsh
Modified: 2006-03-08 06:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description N. Andrew Walsh 2006-03-07 19:00:34 UTC
/home is a mounted reiserfs scsi partition. since 2.6.15-gentoo-r5 or so, resierfs extended attribs were slowly accumulating, resulting in unwanted -i flags, and thus unintended file immutability.

now, however, latest kernel release (2.6.15-gentoo-r7) seems completely unable to read or change extended attributes:

$lsattr
lsattr: Inappropriate ioctl for device While reading flags on ./foo
lsattr: Inappropriate ioctl for device While reading flags on ./bar
lsattr: Inappropriate ioctl for device While reading flags on ./etc
...
#chattr -R -Adjc .
chattr: Inappropriate ioctl for device while reading flags on ./foo
chattr: Inappropriate ioctl for device while reading flags on ./bar
chattr: Inappropriate ioctl for device while reading flags on ./etc
...

expected behavior: lsattr should return arrtibute flags. chattr should be able to change them.

this applies even though extended attributes are enabled in the kernel, and occurs on all partitions: reiserfs and ext3 are both unable to handle attributes.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-08 00:35:55 UTC
*** Bug 125413 has been marked as a duplicate of this bug. ***
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2006-03-08 06:08:58 UTC
You are dealing with file (inode) atrributes, not extended attributes (xattr) here.

I think you'll find that if you boot a significantly older kernel (i.e. vanilla 2.6.15) then you'll get exactly the same behaviour - file attributes are disabled.

The idea is that you can use some reiserfs tool to enable attributes by default (which will modify some structure inside the superblock).

There was a bug in this code which meant the "set defaults" functionality had no effect. This bug was fixed in 2.6.15-r5

However, when this functionality was enabled, it became apparent that many users have reiserfs partitions with a garbage superblock which enabled these attributes, and also garbage data in the field where file attributes were supposed to go. This lead to many files being shown as immutable, and people complaining that their reiserfs was read-only for no apparent reason.

So, in 2.6.15-r7, the functionality allowing file attributes to be on by-default was removed, and we are now close to square 1, where faile attributes must be enabled with the "attrs" file option.

Also, this is purely a reiserfs thing, ext3 is unaffected.

If I'm wrong about any of the above, please reopen this bug.