All of lore.kernel.org
 help / color / mirror / Atom feed
* [2.4] [PATCH] Make reiserfs to refuse mounting of non 4K blocksize filesystems
@ 2002-10-31 10:05 Oleg Drokin
  0 siblings, 0 replies; only message in thread
From: Oleg Drokin @ 2002-10-31 10:05 UTC (permalink / raw)
  To: marcelo, linux-kernel, reiserfs-dev

Hello!

   There seems to be some confusion going on among the users who try
   to use non-standard blocksize reiserfs filesystems with 2.4 kernels
   (where this support is not yet merged) and are able to easily crash
   kernel this way, so it seems following patch is necessary for now,
   that only allows to mount 4K-blocksize reiserfs filesystems.

   Please apply.

   Thank you.

Bye,
    Oleg

===== fs/reiserfs/super.c 1.26 vs edited =====
--- 1.26/fs/reiserfs/super.c	Thu Sep 12 12:39:21 2002
+++ edited/fs/reiserfs/super.c	Wed Oct 30 16:42:36 2002
@@ -863,6 +863,12 @@
 	s->s_blocksize_bits ++;
 
     brelse (bh);
+
+    if (s->s_blocksize != 4096) {
+	printk("Unsupported reiserfs blocksize: %ld on %s, only 4096 bytes "
+	       "blocksize is supported.\n", s->s_blocksize, kdevname (s->s_dev));
+	return 1;
+    }
     
     if (s->s_blocksize != size)
 	set_blocksize (s->s_dev, s->s_blocksize);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-31  9:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-31 10:05 [2.4] [PATCH] Make reiserfs to refuse mounting of non 4K blocksize filesystems Oleg Drokin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.