I have mirrored the 2.4 kernel

Paul B paul at blazebox.homeip.net
Tue Jan 9 09:11:07 PST 2001


I have the same problem on my reiserfs partition under 2.4.0 kernel on
my lfs-2.4.2 system.This is related to VFS bug,not syncing fs before unmount.
Here is a patch that someone posted on reisers mailing list which should take care
of the problem.On a side note there is a new resierfs-3.6.25 patch for 2.4.0 on
ftp.namesys.com.HOpe this helps.

Paul B.

---begin patch---

--- linux/fs/super.c.1	Thu Jan  4 13:38:55 2001
+++ linux/fs/super.c	Thu Jan  4 14:14:04 2001
@@ -54,6 +54,7 @@
 extern int root_mountflags;
 
 static int do_remount_sb(struct super_block *sb, int flags, char * data);
+static int do_remount(const char *dir, int flags, char * data);
 
 /* this is initialized in init/main.c */
 kdev_t ROOT_DEV;
@@ -1025,15 +1026,12 @@
 	 * call reboot(9). Then init(8) could umount root and exec /reboot.
 	 */
 	if (mnt == current->fs->rootmnt && !umount_root) {
-		int retval = 0;
 		/*
 		 * Special case for "unmounting" root ...
 		 * we just try to remount it readonly.
 		 */
 		mntput(mnt);
-		if (!(sb->s_flags & MS_RDONLY))
-			retval = do_remount_sb(sb, MS_RDONLY, 0);
-		return retval;
+		return do_remount("/", MS_RDONLY, NULL);
 	}
 
 	spin_lock(&dcache_lock);

---end patch---

Thus spake Richard Lightman (richard at reika.demon.co.uk):

> Misquoted from Sergey Ostrovsky on 2001/01/ 6 at 14:31 +0000:
> > So I decided on using reiserfs patch only ( for now ).
> > Having done so, I noticed when the system goes down / reboots,
> > I see bunch of messages about failed write on ro filesystem
> > ( I have reiserfs as the root fs ).
> > Any similar experience ?
> > 
> Yes. I get exactly the same thing. But I am still arguing with
> the kernel about my xircom cardbus network card. The ieee1394
> interface was recognized - now all I need is a device to test
> it with. X started with no hassle. I think I will have irda
> on the next rebuild.
> 
> Richard
> 
> 
> 
> 
> -- 
> Unsubscribe: send email to lfs-apps-request at linuxfromscratch.org
> and put unsubscribe in the subject header of the message

-- 
Unsubscribe: send email to lfs-apps-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message





More information about the blfs-support mailing list