From: Nikita Danilov Subject: Re: Fw: Re: PROBLEM: ReiserFS: cannot remove file as root with 2.6.0test9-mm3 Date: Tue, 18 Nov 2003 16:24:47 +0300 Message-ID: <16314.7583.703758.67777@laputa.namesys.com> References: <20031117125223.46d784be.akpm@osdl.org> <16313.60286.911046.256297@laputa.namesys.com> <200311181403.52350.pizzaboy@web.de> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com In-Reply-To: <200311181403.52350.pizzaboy@web.de> List-Id: Content-Type: text/plain; charset="us-ascii" To: Ingmar Sittl Cc: Reiserfs mail-list , Andrew Morton Ingmar Sittl writes: > > Hello, > > > > Ingmar, to start we need the following info: > > > > 1. any kernel messages (dmesg or /var/log/messages) that appear when you > > try and fail to remove file as root. > > Sorry, there are no kernel messages, rm just does not let me remove this file. > root:/usr/lib/pkgconfig# rm fontconfig.pc > rm: cannot unlink `fontconfig.pc': Permission denied > > > 2. output of > > > > # lsattr /offending-file > > root:/usr/lib/pkgconfig# lsattr fontconfig.pc > s-Si-dAc------ fontconfig.pc Seems you have immutable attribute set on this file. Can you try root:/usr/lib/pkgconfig# chattr -i fontconfig.pc && rm fontconfig.pc ? Confusing thing is that reiserfs requires special mount option "attr" to turn inode attributes support on. May be -mm3 has generic support for immutable attribute in VFS? Doesn't look so. With what options reiserfs is mounted? > > > Also, can you elaborate what does it mean that you cannot remove file > > in 2.6.0-test9-mm3, but can in 2.6.0-test9? You tried to remove it in > > -mm3, failed, rebooted into -test9 and it removes successfully there, or > > what? > > Almost exactly: > I tried to remove that file in 2.6.0-test9-mm3, failed, rebooted into > 2.6.0-test9, the file was removed successfully, I reinstalled it, recompiled > 2.6.0-test9-mm3 with CONFIG_REISERFS_CHECK,rebooted into 2.6.0-test9-mm3, rm > failed again. I also tried this cycle with a 2.4.21 kernel, same result! Eh? You mean you can remove file when compiled without CONFIG_REISERFS_CHECK and fail when compiled with checks on? > > > > /proc/fs/reiserfs/hda6/on-disk-super > > [...] > > Nikita. > > Ingmar >