Messages in this thread Patch in this message | | | Date | Tue, 12 Oct 1999 03:41:45 -0300 | From | riq <> | Subject | a little patch to fs/ufs/super.c |
| |
This is a small patch to fs/ufs/super.c (kernel 2.2.12) This patch enables reading partitions of bsize=32768 & fsize=4096. This is needed to read partions of 2Gb formatted with OpenBSD 2.5. (At least, that happens to me).
riq.
--- /tmp/linux/fs/ufs/super.c Tue Oct 12 03:01:39 1999 +++ super.c Tue Oct 12 03:14:15 1999 @@ -630,12 +630,12 @@ uspi->s_fmask = SWAB32(usb1->fs_fmask); uspi->s_fshift = SWAB32(usb1->fs_fshift); - if (uspi->s_bsize != 4096 && uspi->s_bsize != 8192) { - printk("ufs_read_super: fs_bsize %u != {4096, 8192}\n", uspi->s_bsize); + if (uspi->s_bsize != 4096 && uspi->s_bsize != 8192 && uspi->s_bsize !=32768) { + printk("ufs_read_super: fs_bsize %u != {4096, 8192, 32768}\n", uspi->s_bsize); goto failed; } - if (uspi->s_fsize != 512 && uspi->s_fsize != 1024 && uspi->s_fsize != 2048) { - printk("ufs_read_super: fs_fsize %u != {512, 1024, 2048}\n", uspi->s_fsize); + if (uspi->s_fsize != 512 && uspi->s_fsize != 1024 && uspi->s_fsize != 2048 && uspi->s_fsize != 4096) { + printk("ufs_read_super: fs_fsize %u != {512, 1024, 2048, 4096}\n", uspi->s_fsize); goto failed; } if (uspi->s_fsize != block_size || uspi->s_sbsize != super_block_size) {
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |