Newsgroups: comp.os.linux.misc Date: Tue, 27 Sep 2005 13:18:43 -0400
I remember that when I used the ext3 fs format, I was able to set something in the file system level that a certain file is un-deletable. Is it possible to do the same thing in reiserfs?
ReiserFS 3.6, at least, will let you *set* the ext3 attributes, and it'll *remember* those attributes, but it won't *honor* those attributes. On a ReiserFS 3.6 partition, you can chattr +i a file and lsattr will show you that the file's immutable. You can then rm that file without a problem. At least you can with ReiserFS 3.6, kernel 2.6.10-vanilla, coreutils 5.2.1. YMMV. ext3 works as advertised with ext attributes, natch.
Matt G
> At least it needs to be enable in your kernel. > zgrep XATTR /proc/config.gz
Hm. Yeah, "ReiserFS extended attributes" isn't set to Y, but ext[23] extended attributes are set to Y. This still doesn't really explain the observed behavior I saw with chattr, though. I would think that if the kernel didn't support extended attributes on ReiserFS, "chattr +i /reiserfs/file" would *fail*, not set the immutable attribute! I may be expecting too much though.
Matt G