Messages in this thread Patch in this message | | | Date | Sun, 4 Nov 2001 12:22:48 -0800 | From | Simon Kirby <> | Subject | Re: Something broken in sys_swapon |
| |
Hmm...Guessing that it had something to do with set_blocksize, I added this patch to the kernel:
--- linux/fs/block_dev.c.orig Sun Nov 4 11:35:05 2001 +++ linux/fs/block_dev.c Sun Nov 4 11:54:39 2001 @@ -95,6 +95,9 @@ /* Ok, we're actually changing the blocksize.. */ bdev = bdget(dev); sync_buffers(dev, 2); + printk("Changing device %02x:%02x block size from %u to %u\n", + MAJOR(dev),MINOR(dev), + blksize_size[MAJOR(dev)][MINOR(dev)],size); blksize_size[MAJOR(dev)][MINOR(dev)] = size; bdev->bd_inode->i_blkbits = blksize_bits(size); kill_bdev(bdev); And tried booting again with /dev/hdb2 swap in my fstab...
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. Changing device 03:02 block size from 1024 to 2048 VFS: Mounted root (ext2 filesystem) readonly. Freeing unused kernel memory: 224k freed Changing device 03:03 block size from 1024 to 4096 Adding Swap: 265064k swap-space (priority 0) Changing device 03:42 block size from 10739452 to 4096 attempt to access beyond end of device 03:02: rw=0, want=10555924, limit=4096 attempt to access beyond end of device 03:02: rw=0, want=10555926, limit=4096
It looks like it's not changing 03:02 (/dev/hda2, my root fs), which is good, but it seems to be trying to change 03:42 (/dev/hdb2) even though that device doesn't exist (which could also be fine, but it looks like it wasn't initialized). I'm guessing blksize_size is statically allocated, so this isn't a problem.
I wonder what else could cause 03:02 to barf... Hmm.
Simon-
[ Stormix Technologies Inc. ][ NetNation Communications Inc. ] [ sim@stormix.com ][ sim@netnation.com ] [ Opinions expressed are not necessarily those of my employers. ] - 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/
| |