Re: Patch?: initial ramdisks did not work in 2.5.28-29

Russell King (rmk@arm.linux.org.uk)
Mon, 29 Jul 2002 00:51:56 +0100


On Sun, Jul 28, 2002 at 04:42:20PM -0700, Adam J. Richter wrote:
> Initial ramdisks do not work in linux-2.5.2{8,9}, because

Correct.

> Also, I would appreciate knowing if anyone is acting as
> maintainer for drivers/block/rd.c, or if I should just send
> patches for rd.c directly to Linus if nobody complains on
> the linux-kernel mailing list.

Al has been working on the problem. To permanently fix it so it doesn't
break each time a change to do_open() happens. Yes, this ramdisk driver
is that brittle.

> + rd_bdev[unit]->bd_inode->i_size = rd_kbsize[unit] << 10;

My temporary hack around the problem was to use rd_length[unit] since
that's already in bytes. But anything that adds code here just makes
the driver slightly more brittle.

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

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