Cannot mount FreeBSD partitions w/ 2.4.19-pre10-ac2
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:
fs/ufs/super.c +3 -3
@@ -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 ) {
Signature · 1 line
Matthias Andree