[FIX] Cannot mount FreeBSD partitions w/ 2.4.19-pre10-ac2

From: Matthias Andree (matthias.andree@stud.uni-dortmund.de)
Date: Thu Jun 27 2002 - 06:44:59 EST


Hello Alan,

trying to mount a FreeBSD 4.6 partition on an IDE drive with Linux
2.4.19-pre10-ac2, I get this:

ufs_read_super: fragment size 1024 is too large

(I am using "mount -r -t ufs -o ufstype=44bsd /dev/MUMBLE /bsd" to mount).

I gather that your tree lacks Mikael Pettersson's trivial
bugfix from 2.5 (that is backported in 2.4.19-rc1), with this patch, I
can mount FreeBSD partitions fine.

I this will be fixed as you merge 2.4.19-rc1 anyways, but people might
find it useful until then:

--- linux/fs/ufs/super.c Wed Jun 5 11:14:53 2002
+++ linux-2.4/fs/ufs/super.c Thu Jun 27 11:32:46 2002
@@ -662,12 +662,12 @@
                         uspi->s_fsize);
                 goto failed;
         }
- if (uspi->s_bsize < 512) {
+ if (uspi->s_fsize < 512) {
                 printk(KERN_ERR "ufs_read_super: fragment size %u is too small\n",
                         uspi->s_fsize);
                 goto failed;
         }
- if (uspi->s_bsize > 4096) {
+ if (uspi->s_fsize > 4096) {
                 printk(KERN_ERR "ufs_read_super: fragment size %u is too large\n",
                         uspi->s_fsize);
                 goto failed;
@@ -679,7 +679,7 @@
         }
         if (uspi->s_bsize < 4096) {
                 printk(KERN_ERR "ufs_read_super: block size %u is too small\n",
- uspi->s_fsize);
+ uspi->s_bsize);
                 goto failed;
         }
         if (uspi->s_bsize / uspi->s_fsize > 8) {

-- 
Matthias Andree


- 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/



This archive was generated by hypermail 2b29 : Sun Jun 30 2002 - 22:00:12 EST