patch-2.2.0-pre5 linux/fs/ufs/super.c

Next file: linux/fs/vfat/namei.c
Previous file: linux/fs/ufs/namei.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre4/linux/fs/ufs/super.c linux/fs/ufs/super.c
@@ -449,6 +449,9 @@
 	MOD_INC_USE_COUNT;
 	lock_super (sb);
 
+#ifndef CONFIG_UFS_FS_WRITE
+	sb->s_flags |= MS_RDONLY;
+#endif
 	/*
 	 * Set default mount options
 	 * Parse mount options
@@ -527,9 +530,6 @@
 		goto failed;
 	}
 	
-	if (!(sb->s_flags & MS_RDONLY))
-		printk("!!! warning !!! write support of ufs is still in experimental state\n"); 
-
 again:	
 	set_blocksize (sb->s_dev, block_size);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov