Re: [reiserfs-list] Re: [REISERFS TESTING] new patches on

Stuart Young (sgy@amc.com.au)
Thu, 22 Nov 2001 10:30:05 +1100


At 11:24 AM 21/11/01 +0100, Dieter Nützel wrote:
>Am Mittwoch, 21. November 2001 11:02 schrieb Nikita Danilov:
>
> > Yes, it's right, but currently we have what we have currently. I am
> > going to extend inode-attrs.patch and add new mount option
> > "noattrs". With it ioctls to set and get attributes will continue to
> > work, but attributes themselves will not have any effect. Then, one can
> > boot with "rootflags=noattrs" and read-write root, clear all attributes
> > by chattr -R and remount root.
>
>After I've 'booted into single user mode with "linux rootflags=noattrs" I
>could change my archives but _NOT_ /dev/console the right way. After the
>second reboot I got the warning and kernel hang, again. Something wrong
>with your patch or my installation?

Erm, while disabling set and get as a nice idea, you only need to disable
get. Disabling set will mean you 'cannot' reset the file that is causing
the problem, because chattr won't actually be able to do what you want.

I haven't looked at the code that chattr uses either, but you may want to
check at HOW it sets/resets values.

eg: Does it read in the value, change the bit and write it out again, or
does it just change that bit? If it reads and get is disabled, well then
you would want to make sure you set the 'full value' that needs to be
there. Not a bug so much as something that just needs to be documented.

AMC Enterprises P/L - Stuart Young
First Floor - Network and Systems Admin
3 Chesterville Rd - sgy@amc.com.au
Cheltenham Vic 3192 - Ph: (03) 9584-2700
http://www.amc.com.au/ - Fax: (03) 9584-2755

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/